Giter Club home page Giter Club logo

enyata-backend's Introduction

enyata-backend

IN THE .ENV SET

LATI = your lattitude LONG = your prefered or test longitute DB_HOST = localhost DB_USER = your database username DB_PASSWORD = your database password DB_PORT = the database port DB_NAME = your database name OPEN_WEATHER_API_KEY = api keys from open weather

The required working flow:

A POST endpoint that receives the incident report.

The report should have the following data :

{ “client_id”: number, “incident_desc: string, “city”: string, “country”: string }

The endpoint receives the report, adds weather data and stores it in a table “incidents”.

The weather report should be fetched from the API service of https://openweathermap.org/current

The stored object should be then as follow:

{ “client_id”: number, “incident_desc: string, “city”: string, “country”: string, “date”: date, “weather_report”: object }

A GET endpoint that lists all the incidents.

The endpoint should have the capability of filtering the data by city, temperature range and humidity range.

A POST endpoint that searches for incidents based on country name.

Write integration tests (and unit tests if applicable) of all endpoints.

Stack:

NodeJS and express (required)

PostgreSQL (required)

ORM: Sequelize (optional)

Mocha (required)

Chai (required)

enyata-backend's People

Contributors

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