Backend code of https://rtapp-verify-backend.recaptime.autocode.gg as deployed to Autocode through GitLab CI.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
.gitlab/ci | 1 year ago | |
.vscode | 1 year ago | |
functions | 1 year ago | |
lib | 1 year ago | |
readme | 1 year ago | |
scripts | 1 year ago | |
tests/cases | 1 year ago | |
www | 1 year ago | |
.eslintrc.js | 1 year ago | |
.gitignore | 1 year ago | |
.gitpod.Dockerfile | 1 year ago | |
.gitpod.yml | 1 year ago | |
.prettierrc.js | 1 year ago | |
.trigger-build | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
env.example.json | 1 year ago | |
package-lock.json | 1 year ago | |
package.json | 1 year ago | |
payloads.json | 1 year ago | |
stdlib.json | 1 year ago |
README.md
Verification Endpoint API backend
This is our source code for the Verification Endpoint API handler and Discord bot running on Autocode, usually synchorized every hour through GitLab CI.
API calls from verify.rtapp.<tk|io>
domain will be trnsparently redirected to the production release at rtapp-verify-backend.recaptime.autocode.gg
.
Development
Requires Node.js 14+ and Autocode CLI if you want to do local development or even deployment to development/production environments on Autocode.
Setup
npm install
npm start
to run an local FunctionScript gateway with hot reload included.curl -i http://localhost:8170/recaptime/rtapp-verify-backend/ping
to check if everything is ready
Deployment
In order for this to work on your Autocode account, you need to update the value of name
in stdlib.json
to point to your namespace instead of pointing at recaptime
. You also need to build your own env.json
file before running lib up dev
.
- Authenticate with
lib login
. - Prepare
env.json
using the template fromenv.example.json
. DO NOT COMMIT! - Update the value
name
to point to your namespace (e.g.username/your-app-here
). - Deploy with
lib up dev
Getting help
- Discord: For Autocode users who are in the official Autocode Discord sevrer or Miraheze users on Miraheze Discord, just ping Andrei Jiroh (
Andrei Jiroh#7159
). You can also optionally join Recap Time Squad's Discord server and ask for help under#rtapp-verify-bot
channel. - Issue tracker: We track issues on https://gitlab.com/RecapTime/verify/issues instead.
Related Projects
- Main project repo (GitHub mirror is available through we use issue forms) - all the verification metadata are being stored publicly, through some private data are held in an MongoDB database instead.
Credits
- Hakiki for the landing page guide: https://hakiki.api.stdlib.com/blog@dev/landingpage.html