Test Project for WeCasa: Haircut booking platform
The setups steps expect following tools installed on the system.
- Github
- Ruby 2.7.1
- Rails 6.0.3
- Postgresql Installation on linux systems
- Google API Key How it works ?
- GraphViz Installation on linux
Note: The Google Api key must be added to .env.exemple and the file must be renamed .env
- HTTPS: git clone https://github.com/Christophe-Junier/HairGuitar.git
- SSH: git clone [email protected]:Christophe-Junier/HairGuitar.git
- CLI: gh repo clone Christophe-Junier/HairGuitar
Run the following commands to create and setup the webpacker.
yarn install --check-files
Run the following commands to create and setup the database.
bundle exec rake db:create
bundle exec rake db:migrate
1- Put the json file on the root of the project /HairGuitar (the file MUST be named data.json)
2- Run the following commands to seed the database.
rake db:json:import
You can start the rails server using the command given below.
bundle exec rails s
And now you can visit the site with the URL http://localhost:3000