Skip to content

API server dedicated to manage backpack inventories for hiking or bikepacking

License

Notifications You must be signed in to change notification settings

Angak0k/pimpmypack

Repository files navigation

⛰️ pimpmypack

PimpMyPack is a set of backend APIs dedicated to CRUD operations on hiking equipment inventories and packing lists.
It should be used in conjunction with any frontend candidates.
It could replace Lighterpack if this project dies (because it's not maintained anymore)

PimpMyPack API

The server is based on Gin Framework and provides endpoints to manage Accounts, Inventories & Packs

A dedicated API documentation is available here.

Setup for local development

1. clone this repo

git clone git@github.com:Angak0k/pimpmypack.git

3. Start a local postgres database

The app need a local DB.

You need to use docker to start a postgres database:

docker run --name pmp_db \
    -d -p 5432:5432 \
    -e POSTGRES_PASSWORD=pmp1234 \
    -e POSTGRES_USER=pmp_user \
    -e POSTGRES_DB=pmp_db postgres:14-alpine

4. Configure the environment

Pimpmypack app read its conf from the environment and/or .env file.

The simplest way is to:

  • copy the .env.sample file to .env
  • customize the values in the .env file to match your setup

5. Start the API server

go build . && ./pimpmypack

Run tests

go test ./...

or with verbose mode

go test -v ./...

About

API server dedicated to manage backpack inventories for hiking or bikepacking

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages