Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.34 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.34 KB

BlogsAPI

API/Backend written in Golang for practice

Features:

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

Setup locally

  • 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>
Using Docker VaccineNotifier
  • Run using sudo docker-compose up

OR

Using Golang VaccineNotifier
  • Install the dependecies using go mod download
  • Run using go run server.go

Screenshots

Home Page: image

Single blog: image

TODO

  • Add better markdown parsing