Skip to content

Latest commit

 

History

History
41 lines (39 loc) · 1.76 KB

CONTRIBUTING.md

File metadata and controls

41 lines (39 loc) · 1.76 KB

Contributing

Setup

  1. .NET is installed from https://dotnet.microsoft.com/download/dotnet/5.0 (cross platform) or with Visual Studio if you check the .NET desktop environment workload when installing.
  2. Head on over to the web server and make sure you generated the private.key and public.key
  3. Copy this public.key from the web server and paste it in bin\Debug\net5.0 (if you don't see these folders you need to run the project at least once with dotnet run)
  4. Setup MongoDb
  5. Run the project with dotnet run

MongoDb

  1. Install MongoDB Community Edition
  2. Install MongoSh
  3. Create database directory
cd C:\
md "\data\db"
  1. Start database with "C:\Program Files\MongoDB\Server\5.0\bin\mongod.exe" --dbpath="c:\data\db" --bind_ip 127.0.0.1 --port 27017
  2. Open up a new connection to the database with MongoSh mongosh.exe --port 27017
  3. Switch to admin use admin
  4. Create a new auth user
db.createUser(
  {
    user: "Admin",
    pwd: "nimda",
    roles: [
      { role: "userAdminAnyDatabase", db: "admin" },
      { role: "readWriteAnyDatabase", db: "admin" }
    ]
  }
)
  1. Optional: Connect as Admin user through shell mongosh.exe --port 27017 -u "Admin" -p "nimda" --authenticationDatabase "admin"
  2. Create auth.txt in bin/Debug/net5.0 with the following contents
Admin
nimda

Shell Reference
Database Reference