TripSorter is a single page app to find cheapest/fastest travel deals from a origin to destination.
I will spare you the boring details and give you an outline how I approach a problem/task in general.
- Rough sketch with paper and pencil. (provided as part of the assessment in this case)
- Pull out my goto tool for design photoshop/sketch and create a mockup.
- Write decent HTML and CSS make sure it looks like the design.
- Add behavior using Javascript or a framework. (my current goto library is Reactjs).
- Write e2e tests to make sure it works as expected.
- Setup an environment for testing/stage/production.
There is a docker file included, available docker commands
Builds a docker image with our app code, it could take some time depending on the connection.
Executes the container
Open http://localhost:3000 to view it in the browser.
For custom setup nodejs
and npm
is required, please follow the instructions to install nodejs
and npm
for
https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
Assuming nodejs
and npm
installed successfully, In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
I compiled a list of improvements which can be made
- Optimize for mobile and tablet devices and browsers.
- Write unit test for components and e2e tests.
- Integrate a state management library. (e.g. Redux, Mobx)
- Implement pagination for large datasets.