Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
/ Denamo Public archive

Denamo - A Deno web boilerplate - Ready to get started with DENO

License

Notifications You must be signed in to change notification settings

burhanahmeed/Denamo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

denamo

release tags attain deno license stars

What to do next:

  • Database integration (MySQL, Firebase, Redis, etc)
  • Still waiting on Deno Frontend update tho
  • Add dynamic rendering (Waiting someone make a deno headless browser module)

Related links

About

Denamo is just a simple web boilerplate / web starter to create your first Deno REST API. It's built on top of Attain web framework and been integrated with MongoDB. As it written in 24 May 2020, the library is still very unstable and please submit an issue if you find some weird behaviors or some bugs.

Installation & Setup

For the first step before you get started with this project, make sure you have Deno installed on your machine.

Simply just clone our biolerplate to your desired directory.

git clone https://github.com/burhanahmeed/Denamo.git

Then you can rename the directory name or just simply use Denamo. The next step, go to your root project directory.

cd Denamo

Connect to MongoDB

Before you can run this project, you need to setup a mongoDB and get it connected with Denamo. Create an .env file and put your database credentials into it. Simply just copy it from .env.example.

.env.example
BASE_URL=http://localhost:3500

MONGO_PRIMARY_URL=mongodb://127.0.0.1/
MONGO_PRIMARY_DATABASE=Testing

So you can run this project right away.

Use this command.

deno run --allow-net --allow-env --allow-read --allow-write --allow-plugin --unstable main.ts

Too long though?

Solution

  • You can use a Nodemon like library for Deno. It is called Denon. First you need to install it. Denon.
  • After you install it, you can use this command.
denon start
  • If you wanna look at the denon setup file, it is on denon.json file.

Contribution

If you feel you can help us to improve this project, do not hesitate to submit an issue or just simply submit your pull request.

License

MIT License

Copyright (c) 2020 Burhanuddin Ahmed