Code Monkey home page Code Monkey logo

charging-station-management-api's Introduction

API for an automated charging station management system.

Status of the App:

  • Task 1: implement API for CRUD operations against stations, companies, stationTypes;
    • Implementation completed
  • Task 2: implement script parsing
    • Implementation 50% completed

Things to do:

  • Finish Task 2 implementation: ETA 6 hours
    • Transform response object in respect to the task statement
    • Add logics of stopping charging of stations
    • Filter Wait operations form the response
  • Clean and refactor the code
  • Add error handling in DB queries
  • Hide from a user errors coming from the DB or internal errors
  • Add unit tests for API CRUD and script parser, ETA 6 hours
  • Add API documentations (swagger integration), ETA 3 hours

Starting the app

  • yarn install
  • Start the app: yarn start
  • Develop the app: yarn dev

Database

For the app SQLite is used. Each service can be setup to run its own DB or use one for every service by setting the SERVICES_DB_PATH environment variable. Moleculer log level is info by default, but can be overridden with CHARGE_MANAGE_API_MOL_LOG_LEVEL to warn or debug.

Postman

There is a postman config with CRUD requests to API that can be imported and used for any manual testing purposes or for automation tests.

Environment variables

  • CHARGER_DB_PATH
  • CHARGER_SERVICE_PORT
  • CHARGER_SERVICE_VERSION
  • CHARGE_MANAGE_API_MOL_LOG_LEVEL
  • COMPANIES_DB_PATH
  • COMPANIES_SERVICE_PORT
  • COMPANIES_SERVICE_VERSION
  • GATEWAY_SERVICE_PORT
  • SERVICES_DB_PATH
  • STATIONS_DB_PATH
  • STATIONS_SERVICE_PORT
  • STATIONS_SERVICE_VERSION
  • STATIONTYPES_DB_PATH
  • STATIONTYPES_SERVICE_PORT
  • STATIONTYPES_SERVICE_VERSION

charging-station-management-api's People

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.