Skip to content

All api related files for the karmakurier project

License

Notifications You must be signed in to change notification settings

karmakurier/api

Repository files navigation

karmakurier API

All api related files for the karmakurier project

Running

To be able to run the backend locally, you will need these things:

  • MongoDB (running locally or at any server)
  • Node.JS Runtime
  1. Install needed dependencies
npm install OR yarn install
  1. Configure the API The following configuration properties have to be configured to use the API.
# Windows
# sets JWT Secret to be used for token generation
set JWT_SECRET=<yoursecret>
# sets MONGODB Connection String
set MONGODB=mongodb://<url>
# sets SQL Connectionstring
set SQL_CONNECTION_STRING=postgresql://
# set the environment. For dev: chooses sqlite for local development and enables seeding. Details see `seed/seed_dev.js`
set NODE_ENV=development
# set init user pw for seeded user
set INIT_USER_PASSWORD=
# set init user mail for seeded user
set INIT_USER_MAIL=

# If you are on MAC, use those
export JWT_SECRET=<yoursecret>
export MONGODB=mongodb://<url>
export NODE_ENV=development

  1. Run the API as follows
npm start

Documentation

See docs folder. For now there is a swagger file. This will be included in JSON format later to Backend and will be available at /api-docs

About

All api related files for the karmakurier project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages