spender

module
v0.0.0-...-30cc0c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: MIT

README

spender

Spender - is opensource api for register spending of money and time

Project outline

  • cmd -> command directory
    • api -> api server main package
  • handlers -> api handle routes
  • types -> api models
  • db -> store api and realisation
  • utils -> usefull functions

Resources

Mongodb driver

Documentation

https://www.mongodb.com/docs/drivers/go/current/quick-start/

Installing mongodb driver

go get go.mongodb.org/mongo-driver/mongo
Echo v4

Documentation

https://echo.labstack.com/docs

Installing echo framework

go get github.com/labstack/echo/v4
Air

Documentation

https://github.com/cosmtrek/air/blob/master/README.md

Installing air framework

go install github.com/cosmtrek/air@latest

Docker

Load mongodb as docker container

pull and run container

docker run --name spender-mongo -d mongo:latest -p 27017:27017

run container

docker start spender-mongo

Directories

Path Synopsis
cmd
api command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL