This is the repository for my bookings and reservations project, which is part of the Udemy course Building modern web applications in Go.
- Built in Go version 1.17.x
Dependencies:
- chi router
- alex edwards SCS session management
- nosurf
- pgx
- simple mail
- Go validator
In order to build and run this application, it is necessary to install Soda (go install github.com/gobuffalo/pop/... ), create a postgres database, fill in the correct values in database.yml, and then run soda migrate.
To build and run the application, from the root level of the project, execute this command:
go build -o bookings ./cmd/web/ && ./bookings \
-dbname=bookings \
-dbuser=tcs
where you have the correct entires for your database name (dbName) and database user (dbUser) For the full list of command flags, run ./bookings -h