https://github.com/lowbytefox/dinosaurus
https://github.com/lowbytefox/dinosaurus
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lowbytefox/dinosaurus
- Owner: LowByteFox
- License: isc
- Archived: true
- Created: 2022-09-24T19:25:09.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2024-01-23T12:40:25.000Z (about 2 years ago)
- Last Synced: 2025-10-13T01:22:38.587Z (5 months ago)
- Language: TypeScript
- Size: 356 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dinosaurus
### HTTP framework for Deno ported from [Buchta](https://github.com/Fire-The-Fox/buchta)

## Get Started
Create empty directory
Enter the directory
create dinosaurus.config.json or grab one from the repository
```json
{
"webRootPath" : "./public",
"cacheRootPath" : "./.cache",
"imports": {
},
"vue-head": [
],
"rollup-globals": {
}
}
```
create public directory
Now you have everything set up
## Example
```ts
import { Dinosaurus } from "https://deno.land/x/dinosaurus/mod.ts";
const app = new Dinosaurus();
app.get("/", (_req, res) => {
res.send("hi");
});
app.get("/id/:id/", (req, res) => {
res.send(`${req.params.get("id")} ${req.query.get("name")}`);
})
app.post("/json/", async (req, res) => {
res.send(JSON.stringify(await req.originalReq.json()));
});
app.run(3000);
```
How to run it
```bash
deno run --allow-read --allow-write --allow-net
```
## Still not implemented
* Working Transpilation for JSX, TSX
* Docs