Skip to content

0xMarvell/simple-blog-posts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Posts API

A simple blog API built using:

DOCS

Read the documentation here

Environment Variables

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.

Run API locally

  • 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

About

CRUD blog posts API using Gin-gonic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published