$ npx create-react-app . --template=typescript
$ yarn add tailwindcss postcss autoprefixer
$ npx tailwindcss init
$ npm run tailwind:build
$ yarn add @apollo/client graphql
$ yarn add react-router-dom
$ npm instl react-hook-form
$ npm instl @types/react-router-dom
$ yarn add -g apollo
$ yarn add apollo
$ npm run apollo:codegen
$ yarn add react-helmet
$ yarn add @types/react-helmet
$ yarn add react-helmet-async
https://github.com/FortAwesome/react-fontawesome#documentation
$ yarn add @fortawesome/fontawesome-svg-core
$ yarn add @fortawesome/free-solid-svg-icons
$ yarn add @fortawesome/react-fontawesome
Images categories:
https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/bbq.png
https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/dessert.png
https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/asian.png
https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/italian.png
// CREATE ACCOUNT OWNER
// LOGIN
// CREATE RESTAURANT OWNER
// CREATE RESTAURANT
// GET ALL CATEGORIES
I think need manually update id db category images.
Images restaurants:
https://d1ralsognjng37.cloudfront.net/b43e3aa8-ad1f-48d9-9109-6024f5ff7793.jpeg
https://d1ralsognjng37.cloudfront.net/8252b41b-1673-4975-91bc-5b609c27b205.jpeg
https://d1ralsognjng37.cloudfront.net/b0bf9b96-2e62-427e-9743-6229715efea1.jpeg
https://d1ralsognjng37.cloudfront.net/3ff8e534-94ec-4dc9-a467-433099e0561f.jpeg
https://d1ralsognjng37.cloudfront.net/32c7d67f-c36f-4471-9cf6-bb16e3b83028.jpeg
https://duyt4h9nfnj50.cloudfront.net/resized/1537291913826-w2880-3f.jpg
Remove helmet package.
We will use react-helmet-async
$ npm run test:coverage
$ yarn add mock-apollo-client
https://testing-library.com/docs/react-testing-library/setup/
$ yarn add cypress
$ npx cypress open
https://testing-library.com/docs/cypress-testing-library/intro/
$ yarn add @testing-library/cypress
Need an Owner account
$ cd backend/
$ nest generate module uploads
I wont store images in aws
$ yarn add aws-sdk
https://formidable.com/open-source/victory/
$ yarn addictory
// CREATE DISH (AS OWNER)
// CREATE OR USE ACCOUNT CLIENT
// LOGIN
// GET RESTAURANT BY ID: V3
// CREATE ORDER (5-10)
// GET ORDERS
I wont use paddle account for now and skip this part
$ npx ngrok
$ npx ngrok http 4000
http://localhost:3000/restaurants/27
http://localhost:3000/orders/20
$ yarn add subscriptions-transport-ws
https://www.apollographql.com/docs/react/api/link/apollo-link-ws/
https://www.apollographql.com/docs/react/data/subscriptions/
// LOGIN AS OWNER
// EDIT ORDER
status: Cooking
$ yarn add google-map-react
$ yarn add @types/google-map-react
console.cloud.google.com -> API Library -> Maps JavaScript API -> Enable
Create credentials
Login as driver
$ yarn add --dev @types/googlemaps
console.cloud.google.com -> API Library -> Directions API -> Enable
Marley
Any questions in english: Telegram Chat
Любые вопросы на русском: Телеграм чат