Skip to content

radzionc/simple-blog-back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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