https://github.com/arthur199212/idt-coding-exercise
Technologies: Node, Express, MongoDB, Create React App, React Query, Material-UI, TypeScript, Docker compose.
https://github.com/arthur199212/idt-coding-exercise
create-react-app docker-compose express material-ui mongodb mongoose nodejs react-query typescript
Last synced: 3 months ago
JSON representation
Technologies: Node, Express, MongoDB, Create React App, React Query, Material-UI, TypeScript, Docker compose.
- Host: GitHub
- URL: https://github.com/arthur199212/idt-coding-exercise
- Owner: Arthur199212
- Created: 2021-05-02T19:43:15.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-02T19:54:37.000Z (about 5 years ago)
- Last Synced: 2025-06-23T19:42:11.581Z (about 1 year ago)
- Topics: create-react-app, docker-compose, express, material-ui, mongodb, mongoose, nodejs, react-query, typescript
- Language: TypeScript
- Homepage:
- Size: 255 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IDT Coding Exercise
## How to start
- run `yarn up` to launch MongoDB in docker container
- run `yarn dev` to launch dev builds of `server` (http://localhost:4000/) and `web` (http://localhost:3000/) packages
- run `yarn populate` to populate DB with 4 test products
- when you're done just run `yarn down` to terminate docker container with MongoDB
## Server API
```bash
# Create a Product (for test purposes only)
curl -X POST localhost:4000/api/v1/products -H "Content-Type:application/json" -d "{\"name\":\"Product Name\",\"description\":\"Some Description to the Product\",\"thumbnail\":\"https://picsum.photos/300\"}"
# Get list of Products
curl localhost:4000/api/v1/products
# Delete all Products and Reviews (for test purposes only)
curl -X DELETE localhost:4000/api/v1/products
# Create a Review
curl -X POST localhost:4000/api/v1/reviews -H "Content-Type:application/json" -d "{\"name\":\"Reviewers Name\",\"productId\":\"608ef85935331c230026f35f\",\"rating\":\"5\",\"text\":\"Some Review Text\"}"
# Get list of Reviews (for test purposes only)
curl localhost:4000/api/v1/reviews
# Delete all Reviews (for test purposes only)
curl -X DELETE localhost:4000/api/v1/reviews
```