A simple blog API built using:
Read the documentation here
This project makes use of the godotenv package to store environment variables. To run this project on your local machine, you will need to add your Postgres database details as environment variables. This article explains how to use the package.
An
.env.example
file has been provided to help with setting up your environment variables.
-
Clone Repo
$ git clone https://github.com/0xMarvell/simple-blog-posts.git
-
Make sure to have Go installed on your local machine
-
Open the code base directory in terminal
-
Launch API server:
$ go build -o blogposts cmd/web/main.go $ ./blogposts
Test API using Postman, Insomnia or any other API testing client of your choice