eraytufan / seba-backend

The node.js application containing the controllers, service and calls to the database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Care for Flora and Fauna seba-backend application

seba-frontend application can be found here

Prerequisites

Both for the back end and front end application check

Just for the backend application:

Setup (before first run)

Go to your project root folder via command line

cd path/to/workspace/seba-backend

Install node dependencies

npm install

Set up your database

  • Create a new directory where your database will be stored (it's a good idea to separate data and business logic - the data directory should be on a different place than your app)
  • Start the database server
mongod --dbpath relative/path/to/database
  • Create all database schemes and import data to begin with
mongorestore dump/

Set the environment variables

This variables are based in your local configuration

export PORT=5000
export MONGODB_URI="mongodb://localhost:27010/communitydb"
export JWT_SECRET="very secret secret"

Start the project

Development environment

npm run devstart

Production environment

npm start

About

The node.js application containing the controllers, service and calls to the database

License:MIT License


Languages

Language:JavaScript 100.0%