Deno x Alosaur π¦π¦
May 24th, 2020 | 1 min readExplanation
I made REST APIs based on my own discography (and my musical tastes), with these technologies:
- Deno: A Secure Runtime For JavaScript And TypeScript
- Alosaur: Deno Web Framework With Many Decorators
Process
Clone the project:
git clone https://github.com/DmnChzl/DenoAlosaur.git
Run the project:
deno run --allow-env --allow-read --allow-write --allow-net --allow-plugin --config tsconfig.lib.json --unstable app.ts
Note(s)
This application depends on a NoSQL database. Install MongoDB and run the following commands in a new terminal before launching the project:
mkdir DataBase
mongo --dbpath DataBase
This application supports the .env
file. Please, create it and override the following properties before launching the project:
DENO_ENV=prod
DENO_HOST=localhost
DENO_PORT=8080
DB_NAME=deno_land
DB_HOST=localhost
DB_PORT=27017
SECRET=HelloWorld
License
"THE BEER-WARE LICENSE" (Revision 42):
<phk@FreeBSD.ORG>
wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day,
and you think this stuff is worth it, you can buy me a beer in return. Damien Chazoule</phk@FreeBSD.ORG
>