Gistlist is simple gists browser, it allows users to search gists on github.
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. (sometimes on tissue paper)
- 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 out there. (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 docker file included, execute following
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!
Because of the given time constraints I could not follow practices which I normally do for a project before it goes to production like unit tests, cross browser testing and certain other optimizations, 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.
- Optimize caching strategy to adhere to github api for cache control.