Ruby On Rails API for iTina Project 4
iTina is a quick itinerary planner that works with people with limited time and specific budgets; providing suggestions for places of interest and things to do
The backend is setup with Ruby On Rails.
After cloning this repo, do peform the following
- run this line in Terminal to install Gemfile packages:
bundle install
- initialize DB connection - type the following in Terminal
rails db:create
and
rails db:migrate
- test that setup by running this line in Terminal:
rails s
Open up a new browser window and go to localhost:3001.
If a welcome screen renders, then this installation is successful
and coding can begin; basic POST and GET by POSTMAN should work
- Front-End framework was compiled into a "Build Folder" by running the following at the Terminal (in Front-End folder):
yarn build
- Copy this generated Folder into the "Public" folder of the Rails project
- Whilst in Back-End folder, run the following at the Terminal to deploy to Herolu:
heroku create
this will initialize Heroku to create a unique app name.
- To run the seeder file, run the following at the Back-End folder in the Terminal:
heroku run rails db:create
heroku run rails db:migrate
heroku run rails db:seed
- Proceed to "git add", "git commit", followed by "git push heroku master" where changes are made
An error was encountered with Heroku buildpacks during deployment. TO rectify this, the following was done:
- At Back-End folder in Terminal, run:
heroku buildpacks clear
followed by
heroku buildpacks
This project team comprises of the following persons
- Charles Chia
- Rachel Lee
- Xavier Bulmer Witterbrown
- Sam Tan