SpaceX-Ships
A NextJS App which displays the SpaceX fleet ships in SpaceX from SpaceX API.
Demo
View the site from the given link
Features
- View all the ships
- View single ship and its details
- Static-site generation
- Deployed on Vercel
Run Locally
Step 1: Clone the project
git clone https://github.com/ankitk26/SpaceX-Ships.git
Step 2: Go to the project directory
cd my-project
Step 3: Install dependencies
npm install
Step 4: Start the server
npm run dev
API Reference
Get all the ships
GET https://api.spacexdata.com/v4/ships
Get a single ship
GET https://api.spacexdata.com/v4/ships/${ship_id}
Parameter | Type | Description |
---|---|---|
ship_id * |
string |
ID of the ship |