Skip to content

iswilljr/message-app

Repository files navigation

Me - Chat App

Technologies used

Project structure

- client
  |- components
  |- env
  |- graphql
  |- pages
  |- utils
  |- types
- server
  |- schema
  |- utils
  |- types
- utils
  |- prisma

Getting Started

  1. Install dependencies:
yarn install
# or
npm install
  1. Create a .env file inside client and server folders:

The environment variables must match the following schemas: client schema and server schema

cp -r client/.env.template client/.env
cp -r server/.env.template server/.env

How to get environment variables

MongoDB Atlas database:

Github OAuth:

Google OAuth:

Next Auth:

  • NEXTAUTH_SECRET: your_secret.
  • NEXTAUTH_URL: http://localhost:3000/.

Public API URLS:

  • NEXT_PUBLIC_WS_GRAPHQL_URI: ws://localhost:4000/graphql
  • NEXT_PUBLIC_GRAPHQL_URI: http://localhost:4000/graphql

Others:

  • CLIENT_ORIGIN: http://localhost:3000

Start developing

Now you can run:

yarn dev

License

This project is MIT Licensed.