Skip to content

A simple API written in Golang which can be used to host blogs by someone.

Notifications You must be signed in to change notification settings

ShauryaAg/BlogsAPI

Repository files navigation

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

About

A simple API written in Golang which can be used to host blogs by someone.

Topics

Resources

Stars

Watchers

Forks