Cloud computing project for COMS-M0010
A scalable cloud application
Boilerplate forked from: react-boilerplate/react-boilerplate
- Server.js
- added following apis to server/index.js
- APIs for homepage:
- ------------------------
- GET /api/users/:username - to search users by partial text
- POST /api/addusers/:username - to create new user
- APIs for UserPage:
- ------------------------
- GET /api/stats/:username - to get stats and trends for user
- POST /api/addsentiment/:username/:sentiment - to add sentiment to user
- App/Containers/HomePage
- Home Page Container was modified to allow search and create user functionality
- App/Containers/UserPage
- UserPage Container was created to display user stats and send sentiments to profile
- Make sure that you have Node.js v8.10 and npm v5 or above installed.
- Run
npm run setupin order to install dependencies and clean the git repo. At this point you can runnpm startto see the example app athttp://localhost:3000. - Run
npm run cleanto delete the example app.
Keywords: React.js, Redux, Node, Cloud computing, COMS-M0010