Before starting to test this API locally you need to assure you have the following prerequisites:
Node.JS see: Installing Node.js
npm see: Installing npm
MongoDB see: Installing MongoDB
- Clone the repo and install all the required packages:
# Fork the project
# Clone this repository
$ git clone https://github.com/YOUR_USERNAME/userAPI.git
# Go into the repository
$ cd userAPI
Create a .env file at the root of the project. (Do not edit or rename .env.example)
Copy the contents of .env.example into your .env file.
Create your Google Client ID by following this and replace
CLIENT_IDin .env with your newly created Google Client ID.Create your Facebook App ID & App Secret by following this and replace
FACEBOOK_APP_ID,FACEBOOK_APP_SECRET,FACEBOOK_APP_URLin .env with your newly created Facebook Creds.
# Install dependencies
$ npm install --aslo=dev
# Starts development server using nodemon
$ npm run dev
# Wait for the development server to load and the server should be live at http://localhost:5000- Create a new branch
# Create a new branch
$ git checkout -b branch_nameMake your relevant changes
Make sure to document the changes in code by commenting it.
Make sure to rewrite or write new test case for new chnages
<-- All Style Guide scripts -->