Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
turivishal authored Aug 20, 2021
1 parent b727bbf commit abb85c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ Customized structure for RESTful API in NodeJS.
```cmd
git clone https://github.com/turivishal/restful-api-nodejs.git
```
2) Move to clone project directory
3) Install dependancies
2) Navigate to clone project directory
3) Install dependencies
```cmd
npm install
```
4) Configure

i) Port (optional)

- The default port is **3000**, you can change if you want to, nevigate to project directory > `app/config/development.yml`, in this file there is a property called `server` > `port`.
- The default port is **3000**, you can change if you want to, navigate to project directory > `app/config/development.yml`, in this file there is a property called `server` > `port`.

ii) Database connection (optional)

- The default connection link is **"mongodb://localhost:27017/ProductLocal"**, you can change it as per your choice, nevigate to project directory > `app/config/development.yml`, in this file there is a property called `mongodb` > `uris`.
- The default connection link is **"mongodb://localhost:27017/ProductLocal"**, you can change it as per your choice, navigate to project directory > `app/config/development.yml`, in this file there is a property called `mongodb` > `uris`.

5) Create a `.env` file in root directory of project, and declare 2 variables for environment config file selection
5) Create a `.env` file in the root directory of the project, and declare 2 variables for environment config file selection
```
PROFILE=development
NODE_ENV=development
Expand Down

0 comments on commit abb85c6

Please sign in to comment.