The finalizing project for the second period of the second year on Avans Hogeschool. In this repository you will find the back end portion of the application, this includes: The node backend server, splunk logging service and mongoDB connection code.
- Run
npm installto install the required dependencies - Configure MongoDB, read more below.
- Set up the other envoirment variables, read more below.
- (optional) Configure Splunk, read more below.
- Run
npm startto start the application onhttp://localhost:3000/api/docs.
On this endpoint you'll find all callable endpoint documented in Swagger.
Connecting to MongoDB
- Install MongoDB (optional if you have an Atlas database)
- In the root directory create an .env file.
- In the .env file set up the following variables as follows:
MONGO_URL="Your Mongo Database URL"
MONGO_DB="Your Mongo Database Name"
MONGO_TEST_DB="Your Mongo Test Database Name"
In the .env file you created for your MongoDB connection also configure the following variables:
SERVER_SECRET="Your super secret encryption key"
PORT="The port you wish to use"
We're assuming you already have your own version of Splunk set up in one way or another.
To connect the logging of our application to your splunk server simply assign your Splunk key and URL to the
SPLUNK_KEY and SPLUNK_URL variables in your .env file.
Dit is een project voor het bedrijf Pharma Partners