New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

github.com/0xmarvell/simple-blog-posts

Package Overview
Dependencies
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/0xmarvell/simple-blog-posts

Source
Go Modules
Version
v0.0.0-20220915180930-bdfa2dad74ea
Version published
Created
Source

Blog Posts API

A simple blog API built using:

  • Gin-Gonic
  • GORM
  • PostgreSQL

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

FAQs

Package last updated on 26 Mar 2024

Related posts