🔥 Die Vernetzungs Plattform für erhabene Lobbyhoes!
- NodeJS 16+
- A MongoDB Database
-
Create a new MongoDB User with read and write permissions for all databases
-
Navigate to the tinder/db directory
-
Connect to your MongoDB Database by using the mongo shell (mongosh) and setting the following environment variables:
MONGO_USER
: The username of the MongoDB UserMONGO_PASSWORD
: The password of the MongoDB UserMONGO_HOST
: The host of the MongoDB DatabaseMONGO_PORT
: The port of the MongoDB Database
Your command should look something like this:
MONGO_USER="username" MONGO_PASSWORD="password" MONGO_HOST="0.0.0.0" MONGO_PORT="27017" mongosh -u "username" -p "password" ...
-
Now that you are connected to your MongoDB Database, run the following command to initialise the collections:
load("create-collections.js");
-
You can now exit the mongo shell by typing
.exit
and pressing enter
- Navigate to the tinder directory
- Install the required dependencies by running the following command:
npm install
- Set the following environment variables:
MONGO_URI
: The Connection-String of your MongoDB DatabasePORT
: The Port the Backend should run onSALT
: The Salt used for hashing passwords. This should be a random generated string
- Run the backend by using the following command:
npm start