-
Notifications
You must be signed in to change notification settings - Fork 9
Database
Download MongoDB from this website Install it. Also Install MongoDB Compass Open MongoDB Compass and connect to the database:
mongodb://localhost:27017/
Create a new Database It is important that you name your database Seed insert this link also to the .env file in the backend in the DATABASE_URI variable.
Then follow the installation tutorial by running this command:
npm run database
Then the database should be set up.
For a database in the cloud use this website. Create an account and create your first project. Create your Cluster and create your database. It is important that you name your database Seed Click on Network Access in the left side bar and add your ip address of your server or let all ips connect. Go back to your clusters. Click on _connect _to create your database user. And click on Connect your Application use the node.js driver on Version 3.0 and copy the uri into the mongodatabase.js file.