This is the wonderful work app backend.
It uses Express.js to create a REST API that handles our business logic and interacts with a MongoDB database.
- Install MongoDB Community server
- Install
.msi
or.zip
based on your convenience - If installed
.msi
run the installation file fromcmd
terminal as Administrator - In 'Service Configuration', uncheck 'Install MongoD as a service' if you want to run the local development server manually (I prefer this for development/testing phase)
- Install
Mongo Compass
if you prefer a GUI to manage databases and connection strings for them - After installation, go to default installation directory (
C:\Program Files
), findMongoDB
- Keep opening the nested folders till you find
bin
- Copy the path, open the folder in the terminal as Administrator
C:\Windows\System32>cd C:\Program Files\MongoDB\Server\7.0\bin
- Run the Database Server file (
mongod
) with paths defined for databases (dbpath
) and logs (logpath
) (I prefer a different directoy, 'D:/')C:\Program Files\MongoDB\Server\7.0\bin>mongod --dbpath D:\MongoDB\Server\7.0\data\db --logpath D:\MongoDB\Server\7.0\logs\mongod.log
- WIP : ways to automate the server execution - bash script ?
- Install