This repo contains the back-end for a fictional wine e-commerce store built for a fictional business: WineDay. It was developed with Ruby on Rails and deployed on Heroku.
The other relavant repos can be found here:
- Frontend Created with React, hosted on Netlify here. The documentation is also included in this repo.
- Planning documentation
If you would like to install a local copy of this web app, you will also need to locally host the Ruby on Rails back end server (instructions can be found in the front-end repo).
Clone the repo:
git clone git@github.com:angieloux/wineday-back-end.git
Navigate to the correct directory you just cloned:
cd wineday-back-end
This app uses PostgreSQL. If you don't have this installed, please follow the docs to do so before continuing.
If you have ruby installed (this app was created with v2.7.5p203), install bundler
gem install bundler
Install dependencies/gems:
bundle install
Once you have PSQL installed, create the db:
bundle exec rails db:create
Migrate the db:
bundle exec rails db:migrate
Seed the db with example data:
bundle exec rails db:seed
Start the server in development mode:
bundle exec rails s
Unit testing has been designed with rspec to test various functions of the app. See these in action with:
rspec
There are also manual request tests done within client.http