Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 946 Bytes

README.md

File metadata and controls

46 lines (37 loc) · 946 Bytes

Back-End for Simple Blog

You could find the front-end here.

all text

Requirements:

  • .NET Core 2+
  • PostgreSQL(connection string specified in Blog.API/appsettings.json)

Technologies

  • ASP.NET Core
  • Entity Framework

Example of how to create a database user

sudo -i -u postgres
psql
create user blogadmin;
alter user blogadmin with password 'blogadmin';
alter user blogadmin createdb;

Run locally

git clone https://github.com/RodionChachura/simple-blog-back
cd simple-blog-back
cd Blog.API
dotnet ef database update
# if you want to populate the database with mock data
# start
cd ..
cd Blog.Mocker
dotnet run
cd ..
cd Blog.API
# end
dotnet run 

License

MIT © RodionChachura