- Help logistic company keep tracks of valuables
- Submission for Shopify backend internship challenge (Summer 2022)
- I will assume that the reviewer has Node.js installed in his machine
- To run the backend server:
- go to backend folder (cd backend)
- instal dependencies (npm install)
- start the server (npm run start)
- (optional) open the sandbox explorer in http://localhost:5000/
- To run the frontend client:
- go to frontend folder (cd frontend)
- install dependencies (npm install)
- start the app (npm start)
- open the app in http://localhost:3000/
- Backend: Apollo server, Mongoose, GraphQL, MongoDB Atlas for database, TypeScript
- Frontend: React, Apollo client
-
In database:
- Product
- id
- name
- category
- manufacturer
- location: refer to id of Location
- Location
- id
- name
- city
- Product
-
In the API
- getProducts: all Product data + Location data where the product is
- createProduct
- deleteProduct
- updateProduct
- getLocations
- createLocation