Team 200 OK's project for CS 188: Human Computer Interaction, Fall 2018
Tripify URL: http://tripify-188.herokuapp.com
GitHub Repository: https://github.com/thenathanyang/tripify
- We used Docker to run the development environment and build the image that gets deployed to Heroku.
- The
backendfolder contains a minimal implementation of a RESTful Node.js server that the frontend talks to in order to store user and trip information.controllerscontains the logic for storing trips and usersroutesexposes the controller logic as an API and validates requestsindex.jsis the entrypoint to the server
- The
uifolder contains the React source code for the entire frontend application.- We used
webpackto build the React source code src/componentscontains reusable components, such as input fields, title, subheading, date picker, tiles, etc. so that we have a consistent UIsrc/modelscontains data models used to reliably interchange data between views and with the backendsrc/pagesimplements the main structure and functionality of each of the screens of our applicationsrc/reducerscontains all of the state-management logic and communication with the backendsrc/main.jsxis the entrypoint to the React application and contains all of the routing logicsrc/main.scsscontains basic SCSS variables used to make fonts, colors, and sizes consistent throughout the UI
- We used
We used the following libraries and APIs throughout the development of Tripify:
- Libraries
- Express (server framework)
- Moment (date library)
- React (UI framework)
- Redux (state management)
- APIs
- Mappening (local events)
- Install yarn: https://yarnpkg.com/en/
- Install Docker: https://docs.docker.com/install/
cdto this repo- run
make dev -j4 - Once you see "Compiled successfully" you can access the frontend at
http://localhost:8888 - As you update files in the backend and frontend, both will automatically recompile, restart, and update in the browser.
- Install the heroku CLI: https://devcenter.heroku.com/articles/heroku-cli
- Run
heroku login - Run
make deploy - Check http://tripify-188.herokuapp.com