in this example you will see :
- how config db connexion (sqlite as example) in scalable way
- retrive data from posted data
- respond to user request with json data
- authentificate user
- test rest api
- rest api doc based on ts instead of swagger ui
deno cli installed trex cli intalled (from deno.land/x modules) file_server installed (from deno.land/std modules)
you need to create table by running
file_server
trex run initdb
init db (only one time)
just clone this reposetory in you local machine and run this
trex run start
then you can interact with this app by one the code in /doc-rest-api
in terminal
export OAK_SQLITE_FILE=_testdb.db
trex run start
open new tab in your terminal and run
export OAK_SQLITE_FILE=_testdb.db
trex run copydb
trex run test
in terminal
set OAK_SQLITE_FILE=_testdb.db
trex run start
open new tab in your terminal and run
set OAK_SQLITE_FILE=_testdb.db
trex run copydb
trex run test
this project try to port best pratic and philosophie in django/flask/foalts framework to oak in progress
- this example is for make easy to start learning backend in deno ecosystem
- inspiration for building foalts/django-rest-framwork equivant in deno ecosystem
make project portable and easy to run without config