- Clone this project
git clone https://github.com/sulaimantok/RestFull-Api.git
- Config file make file config.env or or another name with the *.env file format, after that fill in as follows:
DATABASE_URL=mongodb://localhost:27017/user
in the example I use a local database, if you want to use another database, please change the link according to what will be used, as long as it's still mongodb, the configuration is the same
- Install Dependencies
Open a terminal, and enter the project folder, and type the following command
npm i express mongoose dotenv nodemon --save
After everything is done, run the script:
nodemon server.js