Booking system for a squash (or any) club that has courts (or tables, or pitches, or lanes) and set time slots for those courts that can be booked.
Bookings can be made by members who login with their last name and membership numbers.
Admins have rights to book courts under any players name, remove and change bookings.
Admins are also able to mark the court as paid/un paid upon collection of payment.
heroku pg:backups capture -a tynemouth-squash
curl -o latest.dump `heroku pg:backups public-url -a tynemouth-squash`
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U [USERNAME] -d [DATABASENAME] latest.dump
rake db:create //to create local database
set heroku up as a remote (https://git.heroku.com/tynemouth-squash.git) heroku git:remote -a tynemouth-squash push to heroku master branch
-
ruby -v
//check for installationbrew install ruby if less 2.7.0
-
sudo gem install rails
//install rails globally
//to run the db locally 3. install postgress: https://www.postgresql.org/download/macosx/ (https://postgresapp.com/documentation/cli-tools.html)
-
bundle install
-
install heroku cli:
brew tap heroku/brew && brew install heroku
ORcurl https://cli-assets.heroku.com/install.sh | sh
-
follow backup instructions above
-
rails db:migrate RAILS_ENV=development
-
rails s
eval $(ssh-agent -s) ssh-add ~/.ssh/id_ed25519