Backend app for Coding Blocks IDE
Please ensure you have the following installed:
node.js
npm
postgres
Install project dependencies:
npm install
You'll now have to setup a blank database and credentials in Postgres. The database will be configured by the schema automatically. If you're not familiar with this, please use the "Further Reading" section.
Inside the folder util
, copy the contents of environment.sh.example
into a new file named environment.sh
. Modify the contents of this file as per the credentials and database name you setup in postgres.
npm start
The project has been created express.js and therefore has a similar structure to all express.js apps.
routes/ – Contains all routes split as per their catergory into their respective files
views/ – Jade templates for all the views
util/ – Contains database and environment configuration files
public/ – Contains assets served along with the webpages
express.js
Setup Postgresql database and users