This is a very very simple web app for rating. More to front end/UI task. Regarding the backend part, will be added in the future.
- Everytime user submit a rating, a data with random user will save to db.
- Generate report, the data populated in the graph are fake BUT the trend data (bottom part) is based on user interaction.
The following libraries and tools are used to build this application.
- backend
Node
Express
Typescript
MongoDB
- front end
React
Typescript
NOTE: Expected you NodeJS
and MongoDB
has been installed in your computer.
Clone the project folder and the following steps are required to install dependencies for both client and server:
- Install the dependencies for the server.
# navigate to the project folder and run the command below
$ npm install
- Install the dependencies for the client.
# navigate to the client folder and install the dependencies
$ cd ./client
$ npm install
- Set the mongodb path to your location in the file
config/.env.dev
.
Run the Application.
# Start the service (both backend and frontend) with the command below.
$ npm run watch
# NOTE: The react app runs on port 3000 while the node server runs on port 5000
Upon successful run the service, it will redirect you to http://localhost:3000/.
A script is configured named test for running Jest.
# Run the following command to test the API
$ npm run test