Skip to content

YaroslavVlasenko/booking

Repository files navigation

#Bookings and Reservations

This is repository for my bookings and reservations project.

To remember: ####Run migrations: soda migrate ####Revert migration: soda migrate/down ####Migration generate table: soda generate fizz CreateNameTable ####Migration generate FK/Index: soda generate fizz CreateFKNameTable ####Seed generation: soda generate sql SeedNameTable

####Run the project on Windows: ./run.bat ####Run the project on Linux: ./run.sh

####Run all the tests: go test -v ./... ####Run test in folder with coverage: go test -coverprofile=coverage.out && go tool cover -html=coverage.out

  • Migration generate table: soda generate fizz CreateNameTable

  • Migration generate FK/Index: soda generate fizz CreateFKNameTable

  • Seed generation: soda generate sql SeedNameTable

  • Run the project: ./run.bat(Windows) ./run.sh(Linux)

  • Run all the tests go test -v ./...

  • Run test in folder with coverage go test -coverprofile=coverage.out && go tool cover -html=coverage.out

Soda installation:

$ go get github.com/gobuffalo/pop/...
$ go install github.com/gobuffalo/pop/soda

See also full guide

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •