A simple API built with TypeScript and Express.js for registering NFL jerseys, including player names, jersey numbers, teams, and delivery information from Alagoinhas, BA.
Make sure you have Node.js and npm installed on your machine.
- Clone the repository:
git clone https://github.com/WesleyBSa/node-prod.git
- Navigate to the project directory:
cd node-prod - Install the dependencies:
npm install
To start the server, run the following command:
npm startThe server will start running at http://localhost:5757/.
GET /ping: Check if the server is running.GET /produtos: Retrieve a list of all NFL jerseys.GET /produtos/:id: Retrieve information about a specific NFL jersey by ID.POST /produtos: Register a new NFL jersey.GET /transporte/:de/:para: Get delivery information between two locations.
Register a new NFL jersey:
curl -X POST http://localhost:5757/produtos \
-H "Content-Type: application/json" \
-d '{"name": "Tom Brady", "number": 12, "team": "N.E Patriots", "id": 1, "transporte": "Air"}'This project is licensed under the MIT License. See the LICENSE file for more details.
If you have any questions or suggestions, feel free to reach out at batistawesley948@gmail.com.