Fast API for getting moroccan cities and their districts in json format.

Overview

madina


Fast API for getting moroccan cities and their districts in json format built with

nodejs       express       mysql       node-cache

gdrive-cli


star-repo

📟

Usage

The number of requests per user is limited to 100 req/min

List cities

GET /api/cities

Get all districts for specific city

GET /api/districts/{cityID}

🙌

❯ About

Contributing

Pull requests and stars are always welcome. For bugs and features requests, please create an issue.

Author

Ysn4Irix


📃

❯ License

Copyright © 2022-present, Ysn4Irix. Released under the MIT License.

You might also like...

Its an app that uses a weather API with access to over 200,000 cities current weather conditons.

Its an app that uses a weather API with access to over 200,000 cities current weather conditons.

Weather App Its an app that uses a weather API with access to over 200,000 cities current weather conditons. Screenshots Links Live Site URL: live sit

Aug 17, 2022

Weather app made using openweather api that supports over 200,000 cities

Weather app made using openweather api that supports over 200,000 cities

About This is an open-source weather app built using React.js, and you are welcome to add your unique touch to this project by contributing to the rep

Oct 17, 2022

Package fetcher is a bot messenger which gather npm packages by uploading either a json file (package.json) or a picture representing package.json. To continue...

package-fetcher Ce projet contient un boilerplate pour un bot messenger et l'executable Windows ngrok qui va permettre de créer un tunnel https pour c

Mar 29, 2022

A wrapper for valorant-api, a third-party API for getting data within Valorant. Available on npm

valorant-wrapper A wrapper for the third-party valorant-api How to Use All endpoints can be accessed off the ValAPI class. import { ValAPI } from 'val

Nov 7, 2022

Weather app created using vanilla JavaScript and APIs. You can search cities worldwide and get current and forecast weather features.

Weather app created using vanilla JavaScript and APIs. You can search cities worldwide and get current and forecast weather features.

Weather App Live Demo About the Project Weather app created using vanilla JavaScript and APIs. You can search cities worldwide and get current and for

Dec 28, 2022

Portable Activity Timeline that draws the Timeline based on data given in JSON or CSV format

Portable Activity Timeline that draws the Timeline based on data given in JSON or CSV format

Portable Activity Timeline that draws the Timeline based on data given in JSON or CSV format. By clicking on any activity a detailed modal window is displayed. Initially developed for post incident investigations to get a overview of the situation in an it-environment.

Oct 11, 2022

javascript library to convert a list of objects to a nested json output format, depending on the names in the list

formToNestedJson javascript "library" to convert a list of objects to a nested json output format, depending on the names in the list Basic usage Give

Aug 2, 2021

Weather forecast for Turkey's cities.

Weather forecast for Turkey's cities.

Weather App Weather forecast for Turkey's cities. This web app built with using Vite + React. You can preview here Project Details React Day.js for pa

Jan 3, 2023

Mekna'7, a subsidiary of the ONCF group, which provides bus services to cities not served by train, needs to set up a computer system by creating a database for managing customer reservations.

Online-bus-ticket-reservation Introduction Hello everyone, this is a project that I have done for assignment. This project is a simple online bus tick

Oct 25, 2022
Comments
  • fix(deps): bump fast-xml-parser from 3.3.3 to 4.0.11

    fix(deps): bump fast-xml-parser from 3.3.3 to 4.0.11

    Bumps fast-xml-parser from 3.3.3 to 4.0.11.

    Release notes

    Sourced from fast-xml-parser's releases.

    v4

    • Generating different combined, parser only, builder only, validator only browser bundles
    • Keeping cjs modules as they can be imported in cjs and esm modules both. Otherwise refer esm branch.

    4.0.0-beta.8 / 2021-12-13

    • call tagValueProcessor for stop nodes

    4.0.0-beta.7 / 2021-12-09

    • fix Validator bug when an attribute has no value but '=' only
    • XML Builder should suppress unpaired tags by default.
    • documents update for missing features
    • refactoring to use Object.assign
    • refactoring to remove repeated code

    4.0.0-beta.6 / 2021-12-05

    • Support PI Tags processing
    • Support suppressBooleanAttributes by XML Builder for attributes with value true.

    4.0.0-beta.5 / 2021-12-04

    • fix: when a tag with name "attributes"

    4.0.0-beta.4 / 2021-12-02

    • Support HTML document parsing
    • skip stop nodes parsing when building the XML from JS object
    • Support external entites without DOCTYPE
    • update dev dependency: strnum v1.0.5 to fix long number issue

    4.0.0-beta.3 / 2021-11-30

    • support global stopNodes expression like "*.stop"
    • support self-closing and paired unpaired tags
    • fix: CDATA should not be parsed.
    • Fix typings for XMLBuilder (#396)(By Anders Emil Salvesen)
    • supports XML entities, HTML entities, DOCTYPE entities

    ⚠ 4.0.0-beta.2 / 2021-11-19

    • rename attrMap to attibutes in parser output when preserveOrder:true
    • supports unpairedTags

    ⚠ 4.0.0-beta.1 / 2021-11-18

    • Parser returns an array now
      • to make the structure common
      • and to return root level detail
    • renamed cdataTagName to cdataPropName
    • Added commentPropName
    • fix typings

    ⚠ 4.0.0-beta.0 / 2021-11-16

    • Name change of many configuration properties.
      • attrNodeName to attributesGroupName
      • attrValueProcessor to attributeValueProcessor

    ... (truncated)

    Changelog

    Sourced from fast-xml-parser's changelog.

    Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.

    4.0.11 / 2022-10-05

    • fix #501: parse for entities only once

    4.0.10 / 2022-09-14

    4.0.9 / 2022-07-10

    • fix #470: stop-tag can have self-closing tag with same name
    • fix #472: stopNode can have any special tag inside
    • Allow !ATTLIST and !NOTATION with DOCTYPE
    • Add transformTagName option to transform tag names when parsing (#469) (By Erik Rothoff Andersson)

    4.0.8 / 2022-05-28

    • Fix CDATA parsing returning empty string when value = 0 (#451) (By ndelanou)
    • Fix stopNodes when same tag appears inside node (#456) (By patrickshipe)
    • fix #468: prettify own properties only

    4.0.7 / 2022-03-18

    • support CDATA even if tag order is not preserved
    • support Comments even if tag order is not preserved
    • fix #446: XMLbuilder should not indent XML declaration

    4.0.6 / 2022-03-08

    • fix: call tagValueProcessor only once for array items
    • fix: missing changed for #437

    4.0.5 / 2022-03-06

    • fix #437: call tagValueProcessor from XML builder

    4.0.4 / 2022-03-03

    • fix #435: should skip unpaired and self-closing nodes when set as stopnodes

    4.0.3 / 2022-02-15

    4.0.2 / 2022-02-04

    • builder supports suppressUnpairedNode
    • parser supports ignoreDeclaration and ignorePiTags
    • fix: when comment is parsed as text value if given as <!--> ... #423
    • builder supports decoding &

    4.0.1 / 2022-01-08

    • fix builder for pi tag
    • fix: support suppressBooleanAttrs by builder

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 2
  • fix(deps): bump json-2-csv from 3.7.7 to 3.17.2

    fix(deps): bump json-2-csv from 3.7.7 to 3.17.2

    Bumps json-2-csv from 3.7.7 to 3.17.2.

    Release notes

    Sourced from json-2-csv's releases.

    NPM Release v3.17.0

    • Adds the defaultParser argument to calls to the custom parser function - #218

    NPM Release v3.16.1

    NPM Audit Fixes

    NPM Release v3.16.0

    • Adds the ability to specify a custom function (a, b) => int for the sortHeader option instead of just a boolean value. Thanks to @​mebibou for the feature and pull request to add support! #216, #217

    NPM Release v3.15.1

    Fixes #214

    NPM Release v3.15.0

    • Thanks to @​johnnyoshika for PR #210 - csv injection prevention option for untrusted input
    • Adds parseValue to TypeScript definitions - #213
    • NPM Audit Fixes - #212

    NPM Release v3.14.4

    Updates doc-path and deeks to pull in npm audit fixes.

    NPM Release v3.14.3

    NPM Audit Fixes

    NPM Release v3.14.2

    No release notes provided.

    NPM Release v3.14.1

    No release notes provided.

    NPM Release v3.14.0

    Fixes #184

    NPM Release v3.13.0

    Adds TypeScript support for new wrapBooleans option (part of #188). Thanks @​peacechen!

    NPM Release v3.12.0

    Fixes #185, #188

    NPM Release v3.11.1

    No release notes provided.

    NPM Release v3.11.0

    No release notes provided.

    NPM Release v3.10.3

    NPM Release 3.10.2

    Updates doc-path to 2.3.0

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 2
  • fix(deps): bump fast-xml-parser from 3.3.3 to 4.0.10

    fix(deps): bump fast-xml-parser from 3.3.3 to 4.0.10

    Bumps fast-xml-parser from 3.3.3 to 4.0.10.

    Release notes

    Sourced from fast-xml-parser's releases.

    v4

    • Generating different combined, parser only, builder only, validator only browser bundles
    • Keeping cjs modules as they can be imported in cjs and esm modules both. Otherwise refer esm branch.

    4.0.0-beta.8 / 2021-12-13

    • call tagValueProcessor for stop nodes

    4.0.0-beta.7 / 2021-12-09

    • fix Validator bug when an attribute has no value but '=' only
    • XML Builder should suppress unpaired tags by default.
    • documents update for missing features
    • refactoring to use Object.assign
    • refactoring to remove repeated code

    4.0.0-beta.6 / 2021-12-05

    • Support PI Tags processing
    • Support suppressBooleanAttributes by XML Builder for attributes with value true.

    4.0.0-beta.5 / 2021-12-04

    • fix: when a tag with name "attributes"

    4.0.0-beta.4 / 2021-12-02

    • Support HTML document parsing
    • skip stop nodes parsing when building the XML from JS object
    • Support external entites without DOCTYPE
    • update dev dependency: strnum v1.0.5 to fix long number issue

    4.0.0-beta.3 / 2021-11-30

    • support global stopNodes expression like "*.stop"
    • support self-closing and paired unpaired tags
    • fix: CDATA should not be parsed.
    • Fix typings for XMLBuilder (#396)(By Anders Emil Salvesen)
    • supports XML entities, HTML entities, DOCTYPE entities

    ⚠ 4.0.0-beta.2 / 2021-11-19

    • rename attrMap to attibutes in parser output when preserveOrder:true
    • supports unpairedTags

    ⚠ 4.0.0-beta.1 / 2021-11-18

    • Parser returns an array now
      • to make the structure common
      • and to return root level detail
    • renamed cdataTagName to cdataPropName
    • Added commentPropName
    • fix typings

    ⚠ 4.0.0-beta.0 / 2021-11-16

    • Name change of many configuration properties.
      • attrNodeName to attributesGroupName
      • attrValueProcessor to attributeValueProcessor

    ... (truncated)

    Changelog

    Sourced from fast-xml-parser's changelog.

    Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.

    4.0.10 / 2022-09-14

    4.0.9 / 2022-07-10

    • fix #470: stop-tag can have self-closing tag with same name
    • fix #472: stopNode can have any special tag inside
    • Allow !ATTLIST and !NOTATION with DOCTYPE
    • Add transformTagName option to transform tag names when parsing (#469) (By Erik Rothoff Andersson)

    4.0.8 / 2022-05-28

    • Fix CDATA parsing returning empty string when value = 0 (#451) (By ndelanou)
    • Fix stopNodes when same tag appears inside node (#456) (By patrickshipe)
    • fix #468: prettify own properties only

    4.0.7 / 2022-03-18

    • support CDATA even if tag order is not preserved
    • support Comments even if tag order is not preserved
    • fix #446: XMLbuilder should not indent XML declaration

    4.0.6 / 2022-03-08

    • fix: call tagValueProcessor only once for array items
    • fix: missing changed for #437

    4.0.5 / 2022-03-06

    • fix #437: call tagValueProcessor from XML builder

    4.0.4 / 2022-03-03

    • fix #435: should skip unpaired and self-closing nodes when set as stopnodes

    4.0.3 / 2022-02-15

    4.0.2 / 2022-02-04

    • builder supports suppressUnpairedNode
    • parser supports ignoreDeclaration and ignorePiTags
    • fix: when comment is parsed as text value if given as <!--> ... #423
    • builder supports decoding &

    4.0.1 / 2022-01-08

    • fix builder for pi tag
    • fix: support suppressBooleanAttrs by builder

    4.0.0 / 2022-01-06

    • Generating different combined, parser only, builder only, validator only browser bundles

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 2
Owner
Ysn4Irix
@Ysn4irix Web Developer JavaScript Lover, Love to learn and watch new technologies on the world of programming.
Ysn4Irix
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till mÀnniskor pÄ flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
A JavaScript library for querying administrative regions in Cambodia including Provinces, Districts, Communes and Villages.

pumi A JavaScript library for querying administrative regions in Cambodia including Provinces, Districts, Communes and Villages. Supports Node.js, Bro

null 4 Apr 11, 2022
Fun website to challenge naming all districts in Nepal.

Nepal-Districts Live: https://districts.aabishkararyal.com Repo: https://github.com/aabishkaryal/nepal-districts Table Of Content: Inspiration: Techno

Aabishkar Aryal 39 Dec 25, 2022
An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.

An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.

Snyk Labs 57 Dec 28, 2022
See a banned user's profile, their friends, their favorite games, their followers etc.

Roblox-Banned-User-Viewer AKA BanView See a banned user's profile, their friends, their favorite games, their followers etc. Ever wondered how to view

SCR1PP3D 4 Nov 18, 2022
Functions Recipes is a library of examples to help you getting started with Salesforce Functions and get used to their main features.

Functions Recipes Introduction Salesforce Functions lets you use the Salesforce Platform for building event-driven, elastically scalable apps and expe

Trailhead Apps 172 Dec 29, 2022
JCS (JSON Canonicalization Scheme), JSON digests, and JSON Merkle hashes

JSON Hash This package contains the following JSON utilties for Deno: digest.ts provides cryptographic hash digests of JSON trees. It guarantee that d

Hong Minhee (æŽȘ 民憙) 13 Sep 2, 2022