API for TSB "Kultur B" project.
The API server can handle user management, file uploads and the creation, modification, list and deletion of organisations and tags.
You can configure the API server either setting environment variables or defining the same variables in a local .env
file stored in the root project folder. An example of .env
file would look like the following:
REDIS_URL=localhost:6379
MONGODB_URI=mongodb://localhost:27017/data
PORT=8000
AWS_ACCESS_KEY_ID=AFIOIWTMSLDG4593ASK
AWS_SECRET_ACCESS_KEY=iqlaKF3902FFewerio59JEWe94Kwe352Koep93
ADMIN_EMAIL=test@webkid.io
ADMIN_PASSWORD=ASecurePasswordForThe1AdminUser!
HERE_APP_ID=oW4i5omfEWO3453SDf
HERE_APP_CODE=ok3259F8Fk923K53ko3Ko57
The ADMIN_EMAIL
and ADMIN_PASSWORD
field are used to create an admin if these are passed on start. Changing ADMIN_PASSWORD
will change the password for the user in ADMIN_EMAIL
.
Clone this repository, enter the root folder and run the following:
nvm use # optional
npm install
Start the server running:
npm start
More detailed documentation (in German) can be found here.