The purpose of this test is to refactor the project. As you can see, the quality of the HTML, JS and CSS is very bad and your goal is to clean up and offer the best version of this project.
The test is in two part:
- Refactor the code
- Write your comments/advices about the project and the explanations about your choice of refactoring
- Publish your code on Github
Don't worry if you can't do all of it, just do your best :). We prefer very clean and useful small changes rather than lots of unfinished changes.
You are free to refactor the code as you wish to achieve the following criteria:
- Show a better version of the pages List, View and Cart
- Add accessibility and seo requirements
- Refactor the JS code
- Improve the folder architecture
- Good use of Git and branches
In the COMMENTS.md, we need the following information:
- Your comments/advices about the project
- Your explanation about your choice of refactoring
- NodeJS 8.4.0
- ES6
- Twig
- Bootstrap
- Git
The first step is to install all dependencies:
> cd /path/to/root/folder
> npm install
To build the project in dev mode with the hot reload after any changes:
> npm run dev
After that, you can reach the project at localhost:3001
To build in production mode the project:
> npm run build
> npm start
The whole app will be transpiled to es5 in the folder dist/
To clean the build create with the command above:
> npm run clean