Example of a react web application and a Node.js server to learn data science
- Nodejs (tested on v6.2)
- npm (tested on v3.9.3)
- Nodejs (tested on v6.2)
- npm (tested on v3.9.3)
- docker-image (tested on v1.11.2 with docker-machine)
- R with Rscript to interpret codes sent from the frontend
- Python to interpret codes sent from the frontend
- MongoDB: it runs on the backend after the start command. I encapsulate the db into a docker image and seed it each time the starting command is ran. The frontend makes request to the backend to get all of the informations about an exercise.
- Redux binded with React
- Redux Devtools: you can watch the demo from its creator here
- Express
You can see the demo I've made on youtube: https://www.youtube.com/watch?v=DcpyMRczsi0
It's super easy, run the command in the backend and frontend folder:
npm install
Finally on each folder (frontend, backend), start the project:
npm run start
If you want to build the frontend application (for production):
npm run build
If you have a problem with the binding of the frontend with the backend, check the config.js file on the root of both projects and configure the right port and hostname if needed.
If you go the the website, you will see that you can do two exercises. The first one use the Python language, the second one use the R language. If you complete the exercise, the box on the output will be green and you will see a check on the exercise (navigation bar).
- Tests reducers, components and REST.