Skip to content

pallavi/sendit-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

climbing api

building this to learn go

tools

you will need to install

  • Go
  • PostgreSQL

first time setup

the first time you check out this project, install gometalinter and set up the database.

$ make tools 
$ make db-setup

to see all the makefile commands, run make help.

running the server

install dependencies, update the database by migrating it to the latest version, and run the server.

$ make deps
$ make db-migrate
$ make

make requests to localhost:3000.

migrations

to migrate the database, run

$ make db-migrate

to rollback the last set of migrations you ran, run

$ make db-rollback

to create a new migration (let's call it add_new_table), run

$ make db-migrate-create name=add_new_table

About

RESTful API for tracking climbing progress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published