Skip to content

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

License

Notifications You must be signed in to change notification settings

TUM-SEBA/seba-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published