Skip to content

gDenisLit/item-server-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Item server - Fiber Go

This is a production-ready Go server built with the Fiber framework. It provides RESTful API endpoints for managing items, users, and authentication. This is the Fiber Go version of the Item App - A generic e2e app im building with various technologies, using Vue, React, Express, Go and Pyhton.

enter image description here

Tech Stack

Server: go, fiber, securecookie, crypto, mongodb,

Run Locally

Clone the project

  git clone https://github.com/gDenisLit/item-server-go.git

Go to the project directory

  cd item-server-go

Install dependencies

  make install

Start the server in dev enviroment

  make run

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

ATLAS_URL Connection URI to mongo

DB_NAME Database name

CRYPTER_KEY Base 64 secret key

API Reference

Get all items

  GET /api/item

Get item

  GET /api/item/${id}

Add Item

  POST /api/item

Update Item

  PUT /api/item

Remove Item

  DELETE /api/item/${id}

Authors

About

Template Fiber server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages