Skip to content

A web-appilcation developed on the .NET Core 3.1 (LTS). The application is a web diary for creating, reading & commenting on posts.

License

Notifications You must be signed in to change notification settings

aslamovyura/OpenDiary

Repository files navigation

OpenDiary

.NET Core

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.

Getting Started

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

Application settings

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": "*",
}

Deployment to Heroku

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.

Built with

Author

Yury Aslamov - Software Developer, Ph.D.

License

This project is under the MIT License - see the LICENSE.md file for details.