benawad/fullstack-graphql-airbnb-clone(新しいタブで開きます)
主要言語: TypeScript
A Fullstack GraphQL Airbnb Clone with React and React Native
- star 数
- 1,691
- watcher 数
- 67
- fork 数
- 440
- issue 数
- 23
- 最終更新
- 2023/04/15
主要言語: TypeScript
A Fullstack GraphQL Airbnb Clone with React and React Native
A Fullstack GraphQL Airbnb Clone with React and React Native.
This project is made up of 5 packages that share code using Yarn Workspaces.
git clone https://github.com/benawad/fullstack-graphql-airbnb-clone.git
cd fullstack-graphql-airbnb-clone
yarn
graphql-ts-server-boilerplatecreatedb graphql-ts-server-boilerplate
Add a user with the username postgres and and no password. (You can change what these values are in the ormconfig.json)
Connect to the database with psql and add the uuid extension:
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
Install and start Redis
In packages/server create a file called .env and add the following line inside: FRONTEND_HOST=http://localhost:3000
Run yarn build in packages/common
Run yarn build in packages/controller
Get Google Maps API key and put it here https://github.com/benawad/fullstack-graphql-airbnb-clone/blob/master/packages/web/public/index.html#L14 Videos doing that: https://youtu.be/-QQnzDVcTCo and https://youtu.be/xLlIgokKiLc
Start server yarn start in packages/server
Now you can run yarn start in packages/web or packages/app to start the website or app.
How to get credentials working in graphql playground: https://youtu.be/oM-EmNdhwI4?t=8m39s