API/Backend written in Golang for practice
API/Backend to fetch and display blogs
- Markdown parsing for blogs
- Dockerized the whole setup
- A simple frontend to display blogs
- Admin Auth so only they can add new blogs
- Clone the repo using
git clone https://github.com/ShauryaAg/BlogsAPI.git
- Move into the project folder
cd BlogsAPI/
- Create a
.env
file in the project folder
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=postgres
POSTGRES_HOST=postgres
SECRET=<Secret>
- Run using
sudo docker-compose up
- Install the dependecies using
go mod download
- Run using
go run server.go
- Add better markdown parsing