This README file provides information about the SportStat-API project.
You can interact with the SportStat-API through the following endpoints:
- Production: https://sportstat-api.onrender.com/sports
- Local: http://localhost:3000
Endpoint | HTTP | Description |
---|---|---|
/sports |
GET | Get all sports |
/sports/:id |
GET | Get sport by id |
/sports |
POST | Add new sport |
/sports/seed |
POST | Seed initial sports data |
/sports |
DELETE | Delete all sports |
/sports/:id |
DELETE | Delete sport by id |
/sports/:id |
PUT | Update sport by id |
To install dependencies and run the project in development mode, follow these steps:
-
Install dependencies:
bun install
-
Start the server in development mode:
bun run dev
After running the project, you can access it at http://localhost:3000.