A webapp designed for food truck online ordering. Think Snackpass but for food trucks. As users, you can register an account, order from your favorite food truck, and pick it up using a unique pick up code. This app is built using the following technology: Django, Django REST, React, Semantic UI, Webpack, Babel.
Home Page:
Food Truck Menu:
littyapp/accounts
handles authentication logiclittyapp/foodtrucks
handles getting, creating foodtruck logicslittyapp/frontend
handles frontend, only exist view logiclittyapp/littyapp
contains settings file for Djangolittyapp/text
contains twilio sms text logic./webpacka.config.js
compiles React code in frontend./babelrc
makes React backward compatible
Name | API ENDPOINTS |
---|---|
Get all foodtrucks | api/foodtrucks/ |
Get one foodtruck | api/foodtrucks/str:foodtruck_id/ |
Get one foodtruck's menu | api/foodtrucks/str:foodtruck_id/menu/ |
Get one foodtruck's fooditem | api/foodtrucks/str:foodtruck_id/menu/str:fooditem_id/ |
Log in | api/auth/login |
Registration | api/auth/register |
Get user details | api/auth/user |
Logout / destroy token | api/auth/logout |
Send SMS order to vendor | api/sms/ |
UUID, dotenv
Django, Django REST framework, Knox Authentication, Twilio
React, React Router, Semantic UI, Axios, Webpack, Babel
Windows:
$ python3 -m venv venv
$ venv\Scripts\activate.bat
Unix/MacOS:
$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
$ yarn install
$ yarn dev
$ cd littyapp
$ python3 manage.py migrate
$ python3 manage.py runserver
$ TWILIO_ACCOUNT_SID=xxxxxxxxxxxxxxxx
$ TWILIO_AUTH_TOKEN=xxxxxxxxxxxxxxxx
$ TWILIO_NUMBER=xxxxxxxxxxxxxxxx