Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 2.07 KB

README.md

File metadata and controls

69 lines (43 loc) · 2.07 KB

HairGuitar

Test Project for WeCasa: Haircut booking platform

CircleCI Ruby Style Guide codecov

Prerequisites

The setups steps expect following tools installed on the system.

Note: The Google Api key must be added to .env.exemple and the file must be renamed .env

1. Check out the repository
- 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
2. Setup webpacker dependencies

Run the following commands to create and setup the webpacker.

yarn install --check-files
3 Create and setup the database

Run the following commands to create and setup the database.

bundle exec rake db:create
bundle exec rake db:migrate
4 Fill the database with json file

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
5. Start the Rails server

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