Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Latest commit

 

History

History

api

API

Run locally

Docker

First keep sure to have Docker installed, as described here: https://docs.docker.com/install/

Then run docker-compose by

docker-compose up

from api subfolder inside the command line / terminal.

After containers have been booted (this may take some time), you should be able ...

The key for accessing the API locally is ego by default. You can change the setting in your ./.env file (changes require a restart of your docker containers).

Environment variables

Name Description Example
ADMIN_KEY Custom key for accessing the admin API. myAdminKey
API_KEY Custom API key. myAPIKey
APP_PORT The TCP port of the backend running in container. 80
LOCAL_DEVELOPMENT Indicates if backend is running in local development mode, which produces more debug output. true
MONGO_DB Name of the MongoDB database. vehicle_booking_api
MONGO_HOST Address of the MongoDB host. mongo
MONGO_OPTIONS Additional options for a MongoDB connection. ?useNewUrlParser=true
MONGO_PASSWORD Password for accessing the MongoDB.
MONGO_PORT TCP port of the MongoDB host. 27017
MONGO_USER User for accessing the MongoDB.
TEAM_NAME Default team name. e.GO Digital

Related projects