This is my first API using Express and Node.js
You will need a MongoDB. When you have one just set the environment variables like so:
- Create .env file
- Set DB_CONNECTION=[MONGODB_URL]
- Set PORT=[DESIRED_PORT]
Install and run the server locally on localhost:[DESIRED_PORT]
- Run command
$ npm install
- Run command
$ npm run dev
You can find the API Documentation at [SERVER-DOMAIN]/api-docs