This is the api for the Celebration Board app, a forum where users can celebrate their achievements and write the things they are grateful for. The idea is to create a place on the internet where people can inspire each other to achieve more in their life because I think the internet currently holds too much negativity. (This app does not promote toxic positivity.)
Prerequisite
Steps to set up your local repository:
- Clone the repository.
git clone git@github.com:<YOUR_GITHUB_ACCOUNT>/celebration-board-api.git
- Change into the repository directory.
cd celebration-board-api
-
Fill in any empty application config fields in
src/CelebrationBoard.Api/appsettings.Development.json
. -
Add user secrets
dotnet user-secrets "CelebrationBoardConnectionString" "<Db connection string>"
dotnet user-secrets "CelebrationBoardUsersConnectionString" "<Db connection string>"
- Start application
dotnet run --project src/CelebrationBoard.Api
- Visit application at
https://localhost:7034
.
Running tests
- Run tests
# Run from root directory to ensure all tests are run.
dotnet test
Viewing api documentation
- Start the application
dotnet run --project src/CelebrationBoard.Api
- View Swagger documentation via
https://localhost:7046/swagger/index.html