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
.env
file in the project root by copying the.env.example
or 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.env
file) and import themovies_db.sql
file 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