Skip to content

Ashot72/deno-forum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a basic forum app built with Deno which is very likely to become the new next-generation Node.js. Deno is secure by default, no file, network, environment access, unless explicitly enabled. It supports TypeScript out of the box, ships only a single executable file. No more package.json and node_modules. With Deno you import code via URL, making it possible for package creators to host their code wherever they prefer - decentralization at its finest.

Our app uses DenoDB ORM to connect to MySQL database.

Our app also uses Denon which is nodemon for Deno to automatically restart the process when your code changes.

I will show how to host our Deno app on Heorku, how to install Deno buildpack on Heroku and how to install ClearDB MySQL Database on Heroku and connect. The app's backend code is hosted on Heroku and you can test forums' REST API endpoint here

App's frontend is built with React Hooks and hosted on Firebase

To get started for local development.

Install Deno

Install MySQL Database

       You should downgrade Deno after the intallation.
       deno upgrade –version 1.16.3 
       
       You should also install a forked version of Denon which goes with Deno 1.16.3.
       deno install -qAf --unstable https://raw.githubusercontent.com/denosaurs/denon/main/denon.ts

       Clone the repository
       git https://github.com/Ashot72/deno-forum.git
       
       # Deno App (backend)
         cd deno-forum/backend
         denon start (starts Deno app - localhost:8080)
  
      

       # React Hook App (frontend)
        cd deno-forum/frontend
        npm install (install dependencies)
        npm start (starts React Hooks app - localhost:3000)
        
        

Go to Deno Forum Video page

Go to Deno Forum description page