- Frontend
- Vue
- Headbreaker
- Backend
- Django Rest Framework
- Database
- Linebot
- Deployment (Docker)
- Server
- Mariadb
- Nginx
- Ngrok (WEBHOOK)
- Frontend
- Web
- puzzle
- backend
- API
- Database
- Linebot
- Dockerized
git config --global core.autocrlf false
- Clone this repository
- Rename the file
.env_example
to.env
- Fill in the
.env
file with your own api key and settings - How to get LINE_CHANNEL_SECRET and LINE_CHANNEL_ACCESS_TOKEN
- go to LINE Developer Console
- create a new provider
- create a new channel
- pick the message api
- copy the Channel secret to
.env
- go to Messaging API tab
- copy the Channel access token to
.env
- If using Ngrok, go to NGROK download and setup Ngrok.
- Sign up for a free account
- Download the ngrok client (skip if using Docker)
- Create a domain
- Create an edge, after go to Request Headers and paste name:
ngrok-skip-browser-warning
value:69420
- Click the start tunel and select start from command line and click the copy.
- Go to LINE Developer Console and set webhook url to
https://<your_domain>/api/linebot
. - For Docker:
- (Skip if install) Run
chmod +x install_docker.sh
and./install_docker.sh
to install docker and docker-compose. - Run
docker-compose up -d --build
to start the server.
- (Skip if install) Run
- Without Docker:
- Use your own domain name and replace the
APP_HOST
in.env
andLine Developer Console
with it. - Run the command copied from ngrok.
- Run
python manage.py runserver 0.0.0.0:8000
to start the server.
- Use your own domain name and replace the
- Go to
https://<your_domain>/admin
and login with the username and password in.env
file. - Go to
https://<your_domain>/admin/puzzle
create a difficulty and set the difficulty.
- go to
docker-compose.yml
and change the service (web, db, nginx, ngrok) port number to your own - go to
Dockerfile
and change the export port number - go to
nginx.conf
and change the port number - go to
entrypoint.sh
and change the port number
- Go to LINE Developer Beacon.
- Click the
Line Simple Beacon
button. - Select the Linebot you created.
- Click the
Hardware ID
button. - Copy the
Hardware ID
and go tohttps://<your_domain>/admin/beacon/
and create a new beacon.