This project is a back-end for a clone of Spotify made with Asp.net Core
Getting up and running is as easy as 1, 2, 3.
-
Make sure you have Dotnet core installed and a PostgreSQL database running.
-
Install your dependencies
cd path/to/repo; yarn or npm install
- Start your app
cd path/to/repo; cd API; dotnet run
Simply run dotnet test at the racine of the repo
.
The configuration must be set in a appsettings.json
file in the API
folder.
An exemple configuration file, appsettings.json.exemple
is provided in the API
folder.
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"Jwt": {
"Issuer": "https:/issuer/",
"Audience": "https://audience/",
"AccessTokenKey": "This is a sample secret key - please don't use in production environment.'",
"RefreshTokenKey": "This is a sample secret key - please don't use in production environment.'",
"AccessTokenExpiryInMinutes": 5,
"RefreshTokenExpiryInMinutes": 7
},
"ConnectionStrings": {
"DBContext": "Host=localhost;Database=MyDbName;Username=postgres;Password=myPassword"
},
"Spotify": {
"ClientId": "client Id",
"ClientSecret": "client secret"
}
}
Launch settings are available in the file `repo/API/Properties/launchSettings.json
A playground is available at the path swagger/index.html
The documentation is available in the doc
folder.
- More Unit tests
- UAT tests
- E2e tests
- Better documentation
- More code comments
- Use an authentication service like Auth0