The magic behind the curtain.
Important
Please install .NET (Not .NET Framework) and MongoDB Community Server. Additionally, you may install MongoDB Compass.
To begin development and testing locally, please follow these steps in your terminal of choice:
- Clone the repo by running
git clone https://github.com/FlowerShaper/wiki-backend. - Go inside the newly cloned folder (
cd wiki-backend). - Run
dotnet restore --project CamelliaWiki.Backendto install the packages. - Great! Time for configuration by creating a
config.jsonin the root directory.- Data Directory: Take the full path to the Wiki Articles and place it into the value with a key of
data-dir. - Discord Bot Token: Obtain a bot's Discord Token from the Discord Developer Portal and place it into the value with a key of
token.
- Data Directory: Take the full path to the Wiki Articles and place it into the value with a key of
- Finally, to run the backend, you'll need to run
dotnet run --project CamelliaWiki.Backend. You can then access it athttp://localhost:1984.