Code Monkey home page Code Monkey logo

assignment-datatable-backend's Introduction

DataTable - A simple web-based datatable

DataTable is a simple web-based datatable that supports pagination, sorting, search, and a selectable number of entries in the table. This repository is the back-end (Node.js and MySQL) for the DataTable Application.

Installation

Clone the repository and use Node.js and package manager npm to install and start the DataTable server.

cd assignment-datatable-backend\
npm install
node server.js

The server should be up and running at http://localhost:8080/.

Database Configuration

The database used for this application is MySQL. There is no configuration required for the database as it is already configured and hosted in AWS Relational Database Service (RDS).

REST APIs exposed

  1. GET - /api/countries/ - Fetches the count of the countries from the database.
  2. GET - /api/countries/:limit-:offset/:sortBy-:orderBy - Fetches the countries based on limit, offset, sorting and ordering params.

Dependencies and other packages

  1. express - Building APIs
  2. mysql2 - MySQL Database Driver
  3. cors - Cross-Origin Resource Sharing
  4. dotenv - Loads environment variables from .env file

Notes

  1. The versions of Node.js and npm for development are v16.16.0 and 8.11.0 respectively. For other dependency versions, please refer package.json file.
  2. The .env file is GIT ignored in this repository, I will share it personally if required.

assignment-datatable-backend's People

Contributors

raguramantb avatar

Watchers

James Cloos 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.