Giter Club home page Giter Club logo

atmosphere-api's Introduction

Nest Logo

Description

Welcome to the Atmosphere API repository! This is a RESTful API built using NestJs, Express, and MongoDB.

The Atmosphere API provides simple endpoint for retrieving air quality data,. It utilizes the IQAir API to provide air quality information based on latitude and longitude.

Installation

To install the Atmosphere API, follow these steps:

1 - Clone the repository:

git clone https://github.com/ahmedgamal47/atmosphere-api.git

2 - Install the dependencies:

cd atmosphere-api
npm install

3 - Create a .env file based on the .env.example file and set the appropriate environment variables:

MONGO_HOST=mongodb://db:27017/iqAir
iqAir_apiKey=your_iqair_api_key_here
iqAir_baseUrl=https://api.airvisual.com

you can create your IQAir credentials from here IQAir

4 - Start the server:

npm run start:dev

Alternatively, you can use Docker Compose to run the Atmosphere API. Simply run:

docker-compose up

Usage

This Api supports OpenAPI/Swagger documentation, you can visit the baseUrl and it will show up Swagger UI Documentation

http://localhost:3000/

Test

# unit tests
$ npm run test

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

License

Nest is MIT licensed.

atmosphere-api's People

Contributors

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