Developing a Social Groups web-app using typescript and graphQL
- Apollo-Express as a Server
- Postgres as a Database
- TypeGraphQL for setting GraphQL-API
- TypeORM as an ORM
- Redis for storing user session
- Firebase Storage for storing and serving images
- Make sure you have Redis installed in your computer
- Make sure you have Postgres installed in your computer if not install it from here
- Open the Postgres shell(psql) and create a database
create database circle;
- Replace your database url in
.env
(check.env.example
file for reference)
- Create a firebase project
- Go to project settings -> service accounts -> generate new key (it will download a json file which has project keys)
- save the json file as
src/firebase-admin-credentials.json
- cd into the client and install all dependencies
cd client yarn
- start dev server
yarn dev
- cd into the server and install all dependencies
cd server npm install
- open two terminals and run each of the below commands in seperate terminal
-
npm run watch
-
npm run dev