A simple React app which gets odds data from an Express server API
- Run
npm install
in the root directory, the src directory and the server directory.
- If you want to examine the state in the developer mode uncomment the code in the /src/app.js (lines 24 - 54) and comment out the code on lines 58 - 78.
- Type
npm run
in the src directory for available commands. This also applies for the root and server directories.
N.B: The asset files have already been copied over to /dist...
- Navigate to /src and run
npm run build
.
N.B: The asset files have already been copied over to /dist...
- Navigate to /src and run
npm run build
. - Navigate to the root directory and run
npm start
. A server will be started on thelocalhost
and listening on port5000
N.B: This project does not make use of web storage so when you refresh the browser the data is gone forever...... (o_o)...bye bye. Implementing web storage was passed on a requirement so I didn't add it. If this were an agile development then the different developers would ideally work on the parts of the project in unison, i.e. One developer working on the source (/src), another on the server (/server), etc... Node modules have not been commited so you will have to install all packages. Any questions, etc please email me: [email protected].