Very simple API that serves locations using GeoJSON data
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Very simple API just to maximize the understanding of dealing with APIs with nodeJS and also to mess with some front-end vanilla JavaScript with the help of MapQuest API to do the geocoding in the backend and Map-box to deal with the front-end map and actually I deployed it, so you could take a look without hurting your head with local installing and running for the app So feel free to check it on https://puzzled-jade-cowboy-boots.cyclic.app
Here's why:
- I wanted to deal a little bit with API things like fetch and json stuff with a very simple project
- A Geocoding project is important to understand how geocoding works and how to deal with things like coordinates
- Vanilla JavaScript is important to deal with since it's very important to not rely on libraries and forget about the language that created them :)
To get started clone the repository and read the installation instructions below
list of things you need to use the software
- npm
npm install npm@latest -g
- MongoDB installed locally on your PC
_Below is an example of how you can install and set up the app locally.
- Clone the repo
git clone https://github.com/Yazan-Ali-01/GeoJSON-API.git
- Install NPM packages
npm install
- Enter your environment variables in
config/.env.example
then change its name to.env
onlyconst MONGO_URI = "Here You Put Your Local MongoDB host like (mongodb://localhost:27017) OR your Atlas cluster connection URI"; const GEOCODER_API_KEY = "Your MapQuest Geocoder Api Key";
- start MongoDB local database server in your terminal with
mongod
- start application with
npm run dev
in the terminal - Run it in your browser on
localhost:5000
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Email: yazan.ali.dev@gmail.com
Project Link: https://puzzled-jade-cowboy-boots.cyclic.app