a standalone api, aggregate cleaned data to sec3hub.xyz frontend might become a api server for other projects and friends in the future. check out the interface here
we felt adventurous so we are gave deno a try on production as a backend server.
- deno
- runtime
- oak
- rest framework
- postgresjs
- postgres client
- fly
- docker based serverless
- neon
- Serverless Postgres
for local dev can create a .env file in the root directory. for production use process env variables.
install deno
curl -fsSL https://deno.land/x/install/install.sh | shor via homebrew
brew install denothere are two tasks for deno test and dev
deno task devdeno task testvia docker
docker build . -t sec3backdocker run -it -p 8080:8080 sec3backor with rm and detach
docker run -it -p 8080:8080 -d --rm sec3backit will automatically deploy to fly.io via github actions.
flyctl deploythere is insomia file in the root directory for testing the api. no fancy swagger docs yet.
Note endpoints return two headers
- x-keyword-count total number of searched keyword in the database
- x-row-count total number of rows returned from the database
Please contact via twitter @0xsha or @jeromevvb .
Or email to hello .
