benawad/fullstack-graphql-airbnb-clone(opens in a new tab)
Language: TypeScript
A Fullstack GraphQL Airbnb Clone with React and React Native
- stars
- 1,691
- watchers
- 67
- forks
- 440
- open issues
- 23
- Last updated
- 04/15/2023
Language: 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