A Catalogue of chocolates, built with React.Js and Ruby on Rails
Search through a catalogue of delicious chocolates and favourite the ones you love! Log in and have all your favourite chocolates there for viewing!
- JavaScript
- React.Js
- Redux
- Postgres
- Flickity
To get a local copy up and running follow these simple example steps.
- Node.Js
- Postgres
- Ruby on Rails
- Yarn or NPM
- Browser of any choice
-
Clone repo
git clone https://github.com/mrnadaara/cagarweyne-chocolates.git
-
Go to repo directory
cd cagarweyne-chocolates
-
For Rails, install all gems
bundle install
-
For React, install all dependencies
yarn install
-
Define your postgres credentials by going to
config/local_env.yml
and replace the username and password with your own -
Setup the database by running
rails db:migrate
and thenrails db:setup
-
If for whatever reason the chocolates table is empty, run
rails db:seed
-
Start development server
rails server
-
OPTIONAL: You can have Webpack continuously re-bundle your react app by running
./bin/webpack-dev-server
in a separate terminal
Project was deployed to Heroku
- For rails integration, request and unit testing run
bundle exec rspec
- For react redux testing run
yarn test
👤 Sharma'arke Ahmed
- Github: @mrnadaara
- Twitter: @mrnadaara
- Linkedin: Sharma'arke Ahmed
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse for providing this project requirements and specifications
This project is MIT licensed.