First, we need to install a program that exposes our localhost to the internet. If you already use another program, expose port 3000
and skip to the second step.
-
Signup to ngrok, download and install.
-
Expose port 3000:
./ngrok http 3000
-
Copy the url from the second
Forwarding
line, should look likehttps://xxxxxxxx.ngrok.io
. -
Goto Settings/Webhooks in your repository, and fill in the form:
-
Payload URL:
https://xxxxxxxx.ngrok.io
-
Content type:
application/json
-
Secret: The
GITHUB_SECRET
defined in your environment, you could generate a random string using:node -p "crypto.randomBytes(20).toString('hex')"
-
- clone repo
- cd repo/client
- npm install
- npm start
- cd repo/server
install pipenv
- pipenv shell
- pipenv lock -r
- python manage.py makemigrations
- python manage.py migrate
- python manage.py runserver 0.0.0.0:3000 Enjoy!