Node js and React js implemetation of feedback collecting service
- Saving the reviews
- Form validation
- Pagination (5 reviews per page)
- Success message when a review is saved
- Dockerfile to run the project
Note: This is developed on node v12.14.0 and npm 6.13.4
- Clone the project
- Use
npm installto install the dependencies. - Run
npm startto launch the app. Express server will listen on 3001
- cd into bin/www
- Use
npm installto install the dependencies. - Run
npm startto launch the app. This should open your browser. If not, open http://localhost:3000.
- Clone the project
- Use
npm installto install the dependencies. - Use
npm run feedback-appto start the complete application - Go to
http://localhost:3001/feedback-list/index.html
Run npm run test
Run npm run test-ui
Run npm run unit-tests
To pull the latest image from docker hub run
docker pull dinanjanag/feedback-app
Docker push CI job is configured in github.
https://github.com/dinanjana/feedback-app/blob/master/.github/workflows/docker-image.yml
[
{
"feedBack": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
"name": "asdsada",
"stars": "3"
},
{
"feedBack": "Donec mattis, quam eget mattis pretium, nisi elit pellentesque sapien, id consequat eros risus vel neque.",
"name": "scdscsd",
"rating": "5"
}
]{
"feedback": "Lorem ipsum dolor sit amet, consectetur adipisicing elit.",
"stars": 4,
"name": "zczxc"
}|bin
||www
||build
||_____public ---> UI app static resources
|_|_____src ---> UI app
|
|configs
|
|logs
|
|ws ---> backend servi
554D
ce
||test ---> backend service unit tests
Logs are stored in logs bucket of https://play.min.io/minio/ Get the default creds from here https://docs.min.io/docs/javascript-client-quickstart-guide.html
Feedbacks are stored in mongodb atlas instance https://cloud.mongodb.com/v2/5eec3f9d5638bc560d23e72c#metrics/replicaSet/5eec40286d64ba1c058314dd/explorer/feedBacks/feedBacks