https://github.com/ashot72/deno-forum
Deno Forum with MySQL DenoDB ORM
https://github.com/ashot72/deno-forum
buildpack deno deno-buildpack deno-forum denodb denoland denon forum heroku mysql-database react react-hooks reactjs
Last synced: 8 months ago
JSON representation
Deno Forum with MySQL DenoDB ORM
- Host: GitHub
- URL: https://github.com/ashot72/deno-forum
- Owner: Ashot72
- Created: 2022-01-23T09:07:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-26T08:45:58.000Z (over 3 years ago)
- Last Synced: 2024-12-30T14:53:36.719Z (9 months ago)
- Topics: buildpack, deno, deno-buildpack, deno-forum, denodb, denoland, denon, forum, heroku, mysql-database, react, react-hooks, reactjs
- Language: TypeScript
- Homepage:
- Size: 5.04 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a basic forum app built with [Deno](https://deno.land/) 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](https://eveningkid.com/denodb-docs/) to connect to
MySQL database.Our app also uses [Denon](https://deno.land/x/denon@2.4.10) 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](https://www.heroku.com/platform) and
you can test forums' REST API endpoint
[here](https://denoforums.herokuapp.com/api/forums)App's frontend is built with React Hooks and hosted on
[Firebase](https://denoforums.web.app/)To get started for local development.
Install [Deno](https://deno.land/)
Install [MySQL Database](https://www.mysql.com)
```
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.tsClone 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](https://youtu.be/YPhfLHlShHs) page
Go to [Deno Forum description](https://ashot72.github.io/deno-forum/index.html)
page