Code Monkey home page Code Monkey logo

node-koa-data's Introduction

โšก Node Koa Data

  • Node.js used with Koa instead of Express middleware, with embedded javascript (EJS) & Bootstrap to display oil well data
  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

๐Ÿ“„ Table of contents

๐Ÿ“š General info

  • Koa middleware used to add routing, body-parser, JSON and EJS HTML views
  • Simple Bootstrap navbar
  • An oil well name can be added to the list - this is not stored in a database and will be lost when app is shut down.

๐Ÿ“ท Screenshots

Image

๐Ÿ“ถ Technologies

๐Ÿ’พ Setup

  • npm i to install dependencies
  • npm run dev runs app in the development mode with auto-restart.
  • Open http://localhost:5000 to view in the browser.

๐Ÿ”ง Testing

  • N/A

๐Ÿ’ป Code Examples

  • index.js asynchronous function to render the index page in the browser root using Koa middleware
router.get("/", async (ctx) => {
  await ctx.render("index", {
    title: "Underground Injection Control Wells",
    wells: wells,
  });
});

๐Ÿ†’ Features

  • Uses Koa which is much lighter than the usual Express middleware

๐Ÿ“‹ Status, Testing & To-Do List

  • Status: Working
  • To-Do: Add well update and delete + database connection & other db fields such as location of well etc.

๐Ÿ‘ Inspiration

๐Ÿ“ License

  • This project is licensed under the terms of the MIT license.

โœ‰๏ธ Contact

node-koa-data's People

Contributors

andrewjbateman avatar

Watchers

 avatar  avatar  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.