8000 GitHub - bbriggs/hermes: Great boa of Western AND Eastern Samoa!
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

bbriggs/hermes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hermes

Quickstart

Prepare the Database

  1. Start a database: docker run -d --name hermes-db -it -e MYSQL_ROOT_PASSWORD=<password> -p 127.0.0.1:3306:3306 mysql:5.7.14
  2. pip install -r requirements.txt && python3 ./seed-db.py (or use a venv if you're fancy)
  3. Run migrations: go run ./main.go migrate --dbPass <password>

Start the server

go run ./main.go run --dbPass <password>

Testing

Hermes only has 3 routes:

  • GET /healthz
  • GET /api/v1/products
  • POST /api/v1/order

To send an order using httpie:

http --json post http://localhost:8080/api/v1/order IDs:='[1,2,3]'

About

Great boa of Western AND Eastern Samoa!

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0