Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/radzionc/simple-blog-back
- Owner: radzionc
- Created: 2018-09-22T11:07:06.000Z (over 6 years ago)
- Default Branch: dev
- Last Pushed: 2020-11-16T13:56:17.000Z (about 4 years ago)
- Last Synced: 2024-04-24T10:21:05.709Z (9 months ago)
- Topics: asp-net-core, dot-net-core, entity-framework-core, postgresql
- Language: C#
- Homepage:
- Size: 563 KB
- Stars: 40
- Watchers: 5
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)