The application is a web diary for creating, reading and commenting on posts.
Each new user is invited to create his account and fill out information about himself. After that, user can write posts, share them or comment on posts of other authors.
The application is free-to-use, so just login to start creating amaizing posts!
If you have problems completing the registration (heroku may have problems sending emails via smtp.gmail.com), you can use the following login credentials:
login: user@gmail.com
pass: ctyjdfkbnh
For the correct deploy, it is necessary to update the appsettings.json in the project WebUI directory according to the template below.
{
"ConnectionStrings": {
"DefaultConnection": "Server=databaseServer;Database=databaseName;User Id=sa; Password=userPassword;"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
}
After you install the Heroku CLI, run the following login
commands:
heroku login
heroku container:login
For the application (HEROKU_APP) correct work, a database is required. To add PortgreSQL database on Heroku, use the following command:
heroku addons:create heroku-postgresql:hobby-dev --app:HEROKU_APP
To start the deployment to Heroku, run the following commands from the project folder:
docker build -t HEROKU_APP .
docker tag HEROKU_APP registry.heroku.com/HEROKU_APP/web
heroku container:push web -a HEROKU_APP
heroku container:release web -a HEROKU_APP
When deploying from Linux, use sudo
for the commands above.
- ASP.NET Core 3.1,
- Clean architecture,
- Deployment to Heroku with support of Docker,
- Entity Framework Core,
- CQRS with Fluent Validation,
- MediatR,
- Automapper,
- MimeKit,
- Health check,
- Unit tests with xUnit, Moq and Shouldly
Yury Aslamov - Software Developer, Ph.D.
This project is under the MIT License - see the LICENSE.md file for details.