Skip to content

gpng/order-bot

Repository files navigation

Order Telegram Bot

Table of Contents

Dependencies

goose

sqlc

Usage

  1. Create .env using .env.sample as example

  2. Start docker containers

    make
    
  3. View logs

    make logs
    
  4. Visit localhost:4000/ to check if API is responding

  5. Stop docker containers

    make down
    

Migrations

Create new migrations

goose -dir sqlc/schemas create <migration_name> sql

Run migrations

env $(cat .env) make migrate

Rollback migrations

env $(cat .env) make rollback

Generating models

make gen-models

Test

make test

Maintainers

@gpng

License

MIT © 2020 Gerald Png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published