An API that shows the current location of the International Space Station. The number of people in space at any given moment
App's Location https://iss-location-api.herokuapp.com/
- Back-end: Node.js, Express.js
- Database: MongoDB
- Clone or download the repo
- npm install - to install the dependencies needed by the app
- create a .env file, insert data as seen in .env.example file
- npm start - to run the app
Request | End Point | Action | Response Data |
---|---|---|---|
POST | /api/v1/auth/signup | Create a new user |
{ username: 'string', email: 'string' password: 'string' } |
POST | /api/v1/auth/login | Logs in user |
{ email: 'string' password: 'string' } |
POST | api/v1/iss/location | Add user ISS location search history |
{ location: { latitude: { type: String, }, longitude: { type: String, } }, altitude: { type: String }, datetime: { type: String }, passes: [ { risetime: String, duration: String, } ], } |
GET | api/v1/iss/location | Get user ISS location search history | null |