FunChat is an chat application
react.jsexpress.jsmongodbsocket.io
-
Create
.envfile and paste below code.PORT: 3000, MONGO_URI = Mongodb uri SESSION_SECRET = session secret GOOGLE_CLIENTID = Google client ID GOOGLE_CLIENTSECRET = Google client Secret GITHUB_CLIENTID = Github client ID GITHUB_CLIENTSECRET = Github client secret LOCAL_URL = http://localhost:3000 LOCAL_REDIRECT_URL = http://localhost:3000 GOOGLE_CALLBACK_URL = Google callback url GITHUB_CALLBACK_URL = Github callback url -
To get Google clientID and Google client secret you must create oauth in Google Developer Console
-
To get Github clientID and Github client secret you must create oauth in Github Developer in settings
-
Authentication is done through google-oauth20 and github-oauth.
-
Run the following command
npm install -
To run client run below command ( In client dir )
npm run start
-
To run server run below command ( In server dir )
npm run start