Rabbit juice is an app that powers customers to customize and order their favourite juice wherever they are.
- Create your own empty repo on GitHub
- Clone this repository (do not fork)
- Suggestion: When cloning, specify a different folder name that is relevant to your project
- Remove the git remote:
git remote rm origin
- Add a remote for your origin:
git remote add origin <your github repo URL>
- Push to the new origin:
git push -u origin master
- Verify that the skeleton code now shows up in your repo on GitHub
- Create the
.env
by using.env.example
as a reference:cp .env.example .env
- Update the .env file with your correct local information
- Install dependencies:
npm i
- Run migrations:
knex migrate:latest
- Check the migrations folder to see what gets created in the DB
- Run the seed:
knex seed:run
- Check the seeds file to see what gets seeded in the DB
- Run the server:
npm run local
- Visit
http://localhost:8080/
Customer
- Choose from 7 preset juices or customize from 15 ingredient options
- Input name and phone number
- Check the total $ and total qty and click order now
- Receive text message confirming that the orders are in!
Business owner
- Receive a text message notifying that a customer has created an order.
- visit
http://localhost:8080/business
and check order details. - Input estimated time of completion and click 'submit' button.
- When the order is picked up, click 'picked up' button and hide the order details
- Node 5.10.x or above
- NPM 3.8.x or above
- express 4.13.4 or above
- knex 0.16.3 or above
- pg 6.02 or above
- twilio 3.28.1 or above