Git Product home page Git Product logo

qld-digitalsolutions-expressjs-app-example's Introduction

ExpressJS SQLite Boiler Template

This example is built to show how ExpressJS can be used to teach QLD SATE Digital Solutions.

PHP is a great option and a widely used language with popular frameworks like Laravel or Symfony in the industry. However, teaching PHP only to create and interact with the backend is an unnecessary overhead for students.

If students already have prior knowledge of Javascript, sticking with Javascript by using ExpressJS for the backend can be an excellent way to remove that overhead. ExpressJS is also a very popular framework in the web development space and is part of an up-to-date technology stack.

Personal Disclaimer

There are smelly code in here - use them as opportunities to explore them with your students.

Node Packages installed on this repository

  • Express
  • EJS (HTML templating engine for Express)
  • SQLite (SQLite Client for Node.JS Apps)
  • SQLite3 (Asynchronous SQLite3 bindings)
  • nodemon (Development tool that automatically restarts the node application when changes are made)

If you want to use mySQL instead of SQLite, I recommend mysql2 package (https://www.npmjs.com/package/mysql2)

What this app does

It has a very simple application that allows the user to interact with Books database with three tables (books, genres, authors).

Getting Started

You must have NodeJS (https://nodejs.org/en/) installed on your machine

  1. Clone the repository or extract the ZIP file as a folder.
  2. Inside of the terminal or command prompt - while in the folder - run the below command. (Use your IDE (such as VSCode) terminal which will ensure you are in the folder)

npm install

  1. Run the node application

npm run start

  1. Open your browser and navigate to http://localhost:3000 to view the app
image image image

qld-digitalsolutions-expressjs-app-example's People

Contributors

junveloper avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.