- Click "Use this template" button on GitHub
- Clone your repository
- Installing Depedencies
- Client side: on the
client
directory, typenpm install
- Server side: on the
server
directory, typenpm install
- Client side: on the
- Setting Environment Variable
- Client side
Inside
client
folder, create a new file called.env
which stores your informations about client side such asREACT_APP_SERVER_URL
,REACT_APP_GITHUB_CLIENT_ID
andREACT_APP_SECURITY_KEY
informations.- Store your security key inside
REACT_APP_SECURITY_KEY
variable, note that this value must same as theSECURITY_KEY
inside theserver/.env
file. - Store your server URL inside
REACT_APP_SERVER_URL
variable. - Store your GitHub Client ID inside
REACT_APP_GITHUB_CLIENT_ID
variable. You can get your GitHub Client ID by registering your GitHub OAuth, you can read the documentation here.
- Store your security key inside
- Server Side
Inside
server
folder, create a new file called.env
which stores your informations about server side such asATLAS_URI
,CLIENT_URL
,GITHUB_CLIENT_ID
,GITHUB_CLIENT_SECRET
andSECURITY_KEY
informations.- Store your MongoDB Atlas URI inside
ATLAS_URI
variable. - Store your client URL inside
CLIENT_URL
variable. - Store your GitHub Client ID inside
GITHUB_CLIENT_ID
variable. - Store your GitHub Client Secret inside
GITHUB_CLIENT_SECRET
variable. - Store your security inside
SECURITY_KEY
variable. Note that this value must same as theREACT_APP_SECURITY_APP
inside theclient/.env
file.
- Store your MongoDB Atlas URI inside
- Client side
Inside
- Running this program
- Client side: on the
client
directory, typenpm start
- Server side: on the
server
directory, typenpm start
- Client side: on the