https://github.com/savory/danet-starter
A basic Danet app to help you build awesome API
https://github.com/savory/danet-starter
deno starter-template typescript
Last synced: over 1 year ago
JSON representation
A basic Danet app to help you build awesome API
- Host: GitHub
- URL: https://github.com/savory/danet-starter
- Owner: Savory
- License: mit
- Created: 2022-05-21T20:30:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-23T13:55:13.000Z (over 1 year ago)
- Last Synced: 2025-01-23T14:21:53.337Z (over 1 year ago)
- Topics: deno, starter-template, typescript
- Language: TypeScript
- Homepage:
- Size: 86.9 KB
- Stars: 5
- Watchers: 0
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Description
[Danet](https://github.com/savory/danet) framework starter repository. We
recommend that you use our CLI instead of cloning the repository :
## Installation
Installing Deno packages as a commands is simple. You can install them under any
name you want. For simplicity's sake, we install our danet-cli under the name
danet.
`$ deno install --allow-read --allow-write --allow-run --allow-env -n danet https://deno.land/x/danet_cli/main.ts`
## Basic workflow
Once installed, you can invoke CLI commands directly from your OS command line
through the danet command. See the available danet commands by entering the
following:
$ danet --help To create, run a new basic Danet project, go to the folder that
should be the parent of your new project, and run the following commands:
```bash
$ danet new my-danet-project
$ cd my-danet-project
$ deno task launch-server
```
In your browser, open http://localhost:3000 to see the new application running.
## Database Options
When creating a new project, Danet CLI will ask you what database provider you
want to use between mongodb, postgres and in-memory and will generate all the
required code.
The only thing left if you use mongodb or postgres will be to set environment
variables or put them in a .env file in your project's root folder.
However, if you need it to be less interactive, you can pass the followings
options when calling danet new :
`--mongodb` `--postgres` `--in-memory`
Danet is an MIT-licensed open source project. If you'd like to come along the
journey, please [join our discord](https://discord.gg/Q7ZHuDPgjA).