Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/radzionc/simple-blog-back

Back-End for Simple Blog
https://github.com/radzionc/simple-blog-back

asp-net-core dot-net-core entity-framework-core postgresql

Last synced: 2 months ago
JSON representation

Back-End for Simple Blog

Awesome Lists containing this project

README

        

# Back-End for Simple Blog
You could find the front-end [here](https://github.com/RodionChachura/simple-blog-front).

>

![all text](https://cdn-images-1.medium.com/max/800/1*MDXR5eddScIqHYop-IL9sg.png)

## 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
```bash
sudo -i -u postgres
psql
create user blogadmin;
alter user blogadmin with password 'blogadmin';
alter user blogadmin createdb;
```

## Run locally
```bash
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
```

## [Blog post](https://geekrodion.com/blog/asp-react-blog)

## License

MIT © [RodionChachura](https://geekrodion.com)