Skip to content

Blog Api using go and fiber. Implemented various routes related to blog sites.

Notifications You must be signed in to change notification settings

DevloperAmanSingh/go-blog-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating a README file for your project is a great way to document its setup and usage. Here's a basic template you can use:


Go Blog API

This is a simple blog API built with Go and Fiber framework, using MongoDB as the database.

Setup

  1. Clone the repository:

    git clone https://github.com/your-username/go-blog-api.git
  2. Install dependencies:

    go mod tidy
  3. Set up environment variables:

    Rename .env.example into .env and put down the important credentials.

    # Database configuration
    MONGO_URI=
    MONGO_DATABASE_NAME=
    
    # Server configuration
    SERVER_PORT= 
    
    # JWT configuration
    JWT_SECRET=
    
  4. Start the MongoDB server:

    Make sure MongoDB is running on your machine or update the MONGO_URI in the .env file with the MongoDB connection string.

  5. Run the application:

    go run main.go

Endpoints (To be written soon)

About

Blog Api using go and fiber. Implemented various routes related to blog sites.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published