This guide walks you through running the Ecommerce Delivery API locally and completing the full user onboarding flow — from registration to a token-authenticated request — in under ten minutes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/ecommerce-delivery/llms.txt
Use this file to discover all available pages before exploring further.
Clone the repo and install dependencies
Clone the repository and install all Node.js dependencies with npm.The project uses ES Modules (
"type": "module" in package.json), so Node.js 18 or later is recommended.Configure your environment variables
Copy the provided example file and fill in your values.Open
.env and set each variable:SECRET is used to sign and verify every JWT. Keep it out of version control and choose a value that is hard to guess.Start the development server
Run the dev script, which uses nodemon to watch for file changes and restart automatically.A successful start looks like this:The API is now listening at
http://localhost:3000.Register a new user
Create an account by sending Success response
name, email, and password in the request body. After a successful registration, the server also sends a verification email containing a 6-digit code.200:Verify the account
Submit the Success response The account status is updated to
email and the 6-digit code from the verification email to activate the account.200:"usuario activo" and the user can now log in.Log in and obtain a token
Exchange credentials for a JWT that you will include on every subsequent authenticated request.Success response Save the
200:token value — it is valid for 365 days and must be sent with every protected request.Make an authenticated request
Pass the token in the Success response
Authorization header as a Bearer token. The example below calls the member-listing endpoint, which requires authentication.200:If the
Authorization header is missing the server returns 401. If the token is expired or invalid it returns 403. See the Authentication page for the full details.What’s next?
- Read the Authentication guide to understand the three middleware levels and all error responses.
- Explore the full Users API reference for every available field and status code.
- Learn about the Sale Lifecycle to understand how orders are created and fulfilled.