Technical test for Rakuten TV. This project is client-side
- Node.js v12.18.3
- React.js v16.13.1
- Redux.js v4.0.5
- React router v5.2.0
- Webpack v 4.44.1
- EcmaScript 6, 7, 8
- nvm
Clone project:
$ git clone git@github.com/andreybejarano/rakuten-technical-test.gitThis project uses Node.js version 12.18.3 or higher, if you have NVM run the following:
$ nvm install
$ nvm useInstall dependencies
$ npm installFor development run the following on a terminal:
$ npm run devWhen development mode is executed, the default browser opens automatically; otherwise, open your browser on http://localhost:5000 this is restarted when changes to the source are saved
For runnig the test you have to run this command on a terminal or console:
$ npm run testRun the following on a terminal:
$ npm run buildThis create dir dist with all statics builded to send to web server
This project is client-side. When you try run on production you have to be in the same domain that the API beacause it blocks CORS, you should two option for run in your local if you have Linux or mac as operating sistem; the firts one is edit your /etc/hosts and add 127.0.0.1 local.rakuten.tv then you open a brower on this URL, for example http://local.rakuten.tv:{PORT}. (I use http-server.js for testing it)