Backend code of https://rtapp-verify-backend.recaptime.autocode.gg as deployed to Autocode through GitLab CI.
Go to file
Andrei Jiroh Halili c25539aae5 feat(global): add OpenAPI definition and Axios custom user agent magic
Also we updated package.json to include repository object for use in the lib/userAgent.js file.

Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
2022-04-28 12:11:26 +00:00
.gitlab/ci ci(gitlab-cicd): 💚 fix CI build on fetching env.json snippet stuff 2022-04-25 12:10:41 +00:00
.vscode Update REAMDE and Gitpod config 2022-04-21 08:37:53 +00:00
functions style(global): 🎨 format literally everything + update our secret loader for localdev 2022-04-25 12:09:37 +00:00
lib feat(global): add OpenAPI definition and Axios custom user agent magic 2022-04-28 12:11:26 +00:00
readme Update REAMDE and Gitpod config 2022-04-21 08:37:53 +00:00
scripts feat(global): add OpenAPI definition and Axios custom user agent magic 2022-04-28 12:11:26 +00:00
tests/cases Load up stuff from Autocode 2022-04-21 06:49:16 +00:00
www feat(global): add OpenAPI definition and Axios custom user agent magic 2022-04-28 12:11:26 +00:00
.eslintrc.js style(global): 🎨 format literally everything + update our secret loader for localdev 2022-04-25 12:09:37 +00:00
.gitignore Load up stuff from Autocode 2022-04-21 06:49:16 +00:00
.gitpod.Dockerfile chore(global): 🧑‍💻 update Gitpod config on STDLIBRC magic and workspace Dockerfile 2022-04-25 12:13:11 +00:00
.gitpod.yml chore(global): 🧑‍💻 update Gitpod config on STDLIBRC magic and workspace Dockerfile 2022-04-25 12:13:11 +00:00
.prettierrc.js style(global): 🎨 format literally everything + update our secret loader for localdev 2022-04-25 12:09:37 +00:00
.trigger-build Trigger CI deploy for testing 2022-04-21 08:43:23 +00:00
LICENSE Add LICENSE in order to be freely available to fork 2022-04-21 06:53:11 +00:00
README.md Update documentation and then some 2022-04-21 15:09:20 +00:00
env.example.json Update documentation and then some 2022-04-21 15:09:20 +00:00
package-lock.json build(global): add Prettier and ESLint to devDependencies + add even more scripts 2022-04-25 12:14:05 +00:00
package.json feat(global): add OpenAPI definition and Axios custom user agent magic 2022-04-28 12:11:26 +00:00
payloads.json Load up stuff from Autocode 2022-04-21 06:49:16 +00:00
stdlib.json Update documentation and then some 2022-04-21 15:09:20 +00:00

README.md

Verification Endpoint API backend

Open in gitpod

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

  1. npm install
  2. npm start to run an local FunctionScript gateway with hot reload included.
  3. 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.

  1. Authenticate with lib login.
  2. Prepare env.json using the template from env.example.json. DO NOT COMMIT!
  3. Update the value name to point to your namespace (e.g. username/your-app-here).
  4. Deploy with lib up dev

Getting help

  • 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