Skip to content

selisebt/rails-clubs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CST Clubhouse

Description

This Repo contains the code for the CST Clubhouse WebApp used the workshop.

Installation

Prerequisites

The following tools must be installed on your system to run the project:

  1. Docker
  2. Git
  3. Code Editor / IDE (RubyMine/VSCode)

Steps

You may have to run the following git global config to set your username and email:

  git config --global user.name "your-username"
  git config --global user.email "youremail@example.com"
  1. Clone the repository
  
  git clone https://github.com/selisebt/rails-clubs.git
  1. Change directory to the project folder
  cd rails-clubs
  pwd
  1. Run the following command to run the project in a docker container for development
  # Use Powershell if you are on windows.
  # Replace PWD with the absolute path to the project folder (use pwd output from above)
  docker run --name cst-clubhouse -v PWD:/app -p 3000:3000 -d ruby:3.4.2 tail -f /dev/null

This will create a docker container with the name cst-clubhouse and run the tail -f /dev/null command to keep the container running.

  1. Run the following command to check if the container is running
  docker ps
  1. Use the following command to enter the container
  docker exec -it cst-clubhouse bash
  cd app/
  1. (In the next session) Run the following commands inside the container to run the rails project
  bundle install
  rails db:create
  rails db:migrate
  rails s -b 0.0.0.0

Useful git commands

The following commands are useful when working with git for this workshop:

Run these commands in the project folder.

  1. Check the status of the project
  git status
  1. Change Branch
  git fetch && git checkout <branch-name>
  1. Reset all changes (run this before switching/checking out to another branch)
git checkout .
git clean -ffdx

Branches

The following branches are available in the project:

  1. main - The main branch of the project
  2. feature/rails-setup-0 - Rails setup
  3. feature/devise-setup-1 - Devise setup
  4. feature/db-models-2 - Database models
  5. feature/user-management-3 - User management
  6. feature/fe/user-management-4 - User management frontend
  7. feature/clubs-5 - Clubs
  8. feature/fe/clubs-6 - Clubs frontend
  9. feature/club-api-tests-7 - Club API tests setup
  10. feature/club-api-tests-7.1 - Club API tests
  11. feature/announcements-8 - Announcements
  12. feature/fe/announcements-9 - Announcements frontend
  13. feature/events-10 - Events
  14. feature/fe/events-11 - Events frontend
  15. feature/event-reminder-12 - Event remainder
  16. feature/budgeting-13 - Budgeting
  17. feature/fe/budgeting-14 - Budgeting frontend
  18. feature/containerization-15 - Containerization
  19. feature/CICD-16 - CI/CD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors