Skip to content

Backend for my geolocation app built in Swift.

Notifications You must be signed in to change notification settings

funccFORCE/geo-app-backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geo App Backend In Node

Backend for my geolocation app built in Swift from my YouTube Video!

How to use it

  1. Npm install the modules.
  2. Create a .env where you will have:
  NODE_ENV = development
  PORT = 5000
  MONGO_URI = Your Cluster connection string from Atlas: MongoDB
  1. Npm run dev

endpoints (GET & POST)

http://localhost:5000/api/v1/user
http://localhost:5000/api/v1/pins

JSON Format - POST req

User (example)

{
    "userId": "andresvidoza",
    "location": {
        "coordinates": [20.774756, -50.076481]
    }
}

Pins (example)

{
    "pinId": "1",
    "location": {
        "coordinates": [20.774756, -50.076481]
    }
}

NOTE

You can expand the app by creating an authentication system which will allow you to register users and start reading their real-time location. If time allows it, I will eventually expand this project even more.

About

Backend for my geolocation app built in Swift.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%