Skip to content

UETCodeCamp/crush-hunt-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crush Hunt App API

Features

  • Local Authentication using Email and Password (Login and Register)

Prerequisites

Getting Started

# Clone this project to your local.
git clone https://github.com/UETCodeCamp/girl-hunt-api.git my-project

# Change directory
cd my-project

# Install package dependencies
npm install || yarn

# Start your app
node index.js

Note: I highly recommend installing Nodemon. It watches for any changes in your node.js app and automatically restarts the server. Once installed, instead of node app.js use nodemon app.js. It will save you a lot of time in the long run, because you won't need to manually restart the server each time you make a small change in code. To install, run:

sudo npm install -g nodemon

Configuration

You can add file {environment}.env to change configuration (with environment = NODE_ENV).

Example: NODE_ENV=development => file name is: development.env

GH_SECRET_KEY=secret_key
GH_PORT_APP=1234
GH_MONGODB_URI=mongodb://localhost:27017/girl_hunt_app