An E-Commerce website built using .Net Core and MongoDB.
Set up Mongo (Windows):
- Download MongoDB Server
- Add MongoDB to the system's path
- Create the path C:\MongoDB\Replica1.
- Open the Command Line as an Administrator and run: “mongod --replSet rs1 --dbpath C:\MongoDB\Replica1 --port 37017”
- Open the Command Line as an Administrator and run: “mongo --port 37017”
- In the Command Line from step 5 run :” config = { _id: "rs1", members: [ {_id: 0, host: "localhost:37017"} ] }”
- In the Command Line from step 5 run :”rs.initiate(config)”
(For Linux instructions there are many sources online on how to "Create a Replica Set".)
Next: The system can execute different operations as they are specified in the system_init.json residing in the root folder. Run the system once with the existing file, then replace it with an empty array ("[]").