Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mlh-fellowship/neo-detection
Backend application for detecting Near-Earth Objects using NASA's NeoWs API
https://github.com/mlh-fellowship/neo-detection
asteroids astronomy backend django hackathon-project mlh mlh-fellowship nasa-api near-earth-objects python3 space space-news
Last synced: about 1 month ago
JSON representation
Backend application for detecting Near-Earth Objects using NASA's NeoWs API
- Host: GitHub
- URL: https://github.com/mlh-fellowship/neo-detection
- Owner: MLH-Fellowship
- License: mit
- Created: 2020-10-06T18:38:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-23T02:37:34.000Z (over 3 years ago)
- Last Synced: 2023-03-04T05:47:50.268Z (almost 2 years ago)
- Topics: asteroids, astronomy, backend, django, hackathon-project, mlh, mlh-fellowship, nasa-api, near-earth-objects, python3, space, space-news
- Language: Python
- Homepage: https://neo-detection.herokuapp.com/api/browse/
- Size: 55.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# neo-detection
Detecting Near-Earth Objects using NASA's API## Installation
```sh
# Go into project directory
cd neo-detection# Create virtual environment
python3 -m venv env
source env/bin/activate# Install all required packages (Django, Django REST Framework, dotenv, etc.) into virtual env
pip install -r requirements.txt# Configure environment variables (instructions below)
# Sync database and apply migrations
python manage.py migrate# Create an admin superuser with your desired username, email and password
python manage.py createsuperuser --username admin --email [email protected]# Run the server (default: 127.0.0.1:8000)
python manage.py runserver
```## Environment Variables
Create a new `.env` file in root directory and use `.env.example` as a reference to provide the following environment variables:
```sh
DJANGO_SECRET_KEY=
NASA_API_KEY=
```To generate a new Django secret key, run this in a Python virtual environment after dependencies have been installed.
```sh
python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
```[Sign up to generate a NASA API key](https://api.nasa.gov/#signUp).