Simple REST API server written for learning purpose.
- Clone the repo and install the dependencies:
$ git clone https://github.com/mohole/learn-expressjs
$ cd learn-expressjs
$ npm install- Create an
.envfile in the project root by copying the.env.exampleor running the command (bash only):
$ cp .env.example .env-
Create a MySQL databse called
expressjs(or use a different name if you want to modify the.envfile) and import themovies_db.sqlfile in the root of the project. -
Start the Database server
-
Start the project in development mode with:
$ npm run dev- Open the browser at
http://localhost:3004.
MIT