Quickstart
Get started with Atlas in minutes.
Installation
Clone the repository:
git clone https://github.com/lanre290/atlas.git
cd atlasInstall dependencies:
npm installRunning Locally
Start the development server:
npm run devEnvironment Variables
Create a .env file in the project root:
PORT=3000
NASA_API_KEY=your-nasa-key
JPL_API_KEY=your-jpl-key
SOLARSYSTEM_API_KEY=your-solarsystem-key
Starting the Server
npm startFirst API Request
cURL
curl "http://localhost:3000/search?q=mars"JavaScript
const res = await fetch('http://localhost:3000/search?q=mars');
const data = await res.json();TypeScript
import fetch from 'node-fetch';
const res = await fetch('http://localhost:3000/search?q=mars');
const data = await res.json();Example Response
{
"query": "mars",
"entities": [
{
"id": "mars",
"name": "Mars",
"type": "planet",
"identifiers": ["mars"],
"sources": ["Le Système Solaire"],
"originalResults": [/* ... */]
}
]
}