This digital Ocean Deployment has been discontinued, and has been moved to Deta.sh. It now has been hosted on https://chzaqr.deta.dev/. Though you can still use the Deploy to Digital Ocean button.
Check the app here: https://open-css-loaders-pwtuz.ondigitalocean.app/
Check Here: https://chzaqr.deta.dev/
This is the application deployed on Digital Ocean's app platform. The Structure of the application is:
- Node.js : Backend API
- MySQL : Database
- HTML/CSS/jQuery : Frontend
The aim of the project is to provide a number of css loaders for your web page, So you can concentrate on what matters the most.
You can use the Deploy to DigitalOcean button to deploy this repo directly to App Platform.
- Add a dev database when deploying
- make sure to add the environment variables when deploying the application
| Name | Value |
|---|---|
| DATABASE_URL | ${db.DATABASE_URL} |
| DATABASE_PASSWORD | ${db.PASSWORD} |
| DATABASE_USER | ${db.USERNAME} |
| DATABASE_NAME | ${db.DATABASE} |
First make sure you have node.js and Node Package Manager (npm) installed.
- Clone the Repository by
git clone URL - Run
npm installto donwload all the required packages. - Create a .env file and add the Following values in it
DATABASE_URL = //url to your local MySQL server
DATABASE_PASSWORD = // Password in the database Eg. password
DATABASE_USER = // Username in the database Eg. root
DATABASE_NAME = // Database You want to connect to Eg. Flight Database
- Run
node app.jsornodemon app.jsif you have nodemon installed. - Goto localhost:3000 to see the app working.