{"id":31710505,"url":"https://github.com/eduardapontel/rocketlog","last_synced_at":"2026-04-11T10:36:52.907Z","repository":{"id":317284913,"uuid":"1066754594","full_name":"eduardapontel/rocketlog","owner":"eduardapontel","description":"Rocketlog is a delivery tracking system that allows users to log in and check the status of their orders.","archived":false,"fork":false,"pushed_at":"2025-10-04T21:10:14.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-13T01:07:13.952Z","etag":null,"topics":["docker","express","jest","jwt","nodejs","prisma","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eduardapontel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-29T23:12:37.000Z","updated_at":"2025-10-04T21:10:18.000Z","dependencies_parsed_at":"2025-09-30T01:24:52.394Z","dependency_job_id":"62ce7d4c-0740-499f-8f35-88972433d330","html_url":"https://github.com/eduardapontel/rocketlog","commit_stats":null,"previous_names":["eduardapontel/rocket-log","eduardapontel/rocketlog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eduardapontel/rocketlog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardapontel%2Frocketlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardapontel%2Frocketlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardapontel%2Frocketlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardapontel%2Frocketlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eduardapontel","download_url":"https://codeload.github.com/eduardapontel/rocketlog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardapontel%2Frocketlog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31677819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","express","jest","jwt","nodejs","prisma","typescript"],"created_at":"2025-10-09T00:28:07.508Z","updated_at":"2026-04-11T10:36:52.879Z","avatar_url":"https://github.com/eduardapontel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rocketlog 📦\n\nRocketlog is a **delivery tracking system** that allows users to log in and check the status of their orders.  \nDepending on the user role, the system provides different access levels:\n- **Customers** can only view their own deliveries.\n- **Sellers** can access and manage all deliveries they handle.\n\n\u003cbr\u003e\n\n## Features ✨\n\n- **User authentication** using JWT.  \n- **Role-based access control** for customers and sellers.  \n- **Delivery management**, including status tracking and delivery logs.  \n- **Secure REST API** built with Express and TypeScript.  \n- **Automated tests** to ensure reliability of controllers and services.\n\n\u003cbr\u003e\n\n## Project Structure 🗂️\n\n- **`prisma/`** – Database schema and migrations for PostgreSQL\n- **`src/`** – Application source code\n  - **`controllers/`** – Handle HTTP requests and responses\n    - `deliveries-controller.ts`\n    - `deliveries-status-controller.ts`\n    - `delivery-logs-controller.ts`\n    - `sessions-controller.ts`\n    - `users-controller.ts`\n  - **`middlewares/`** – Middlewares for authentication and authorization\n    - `ensure-authenticated.ts`\n    - `verifyUserAuthorization.ts`\n  - **`routes/`** – API route definitions\n    - `index.ts`\n  - **`services/`** – Business logic and database operations\n    - `deliveries-service.ts`\n    - `delivery-logs-service.ts`\n    - `sessions-service.ts`\n    - `users-service.ts`\n  - **`utils/`** – Utility modules\n    - `prisma-client.ts`\n  - `app.ts` – Express app setup\n  - `server.ts` – Application entry point\n- `docker-compose.yml` – Docker setup for PostgreSQL\n- `package.json` – Project dependencies and scripts\n- `tsconfig.json` – TypeScript configuration\n- `.env-example` – Environment variables example\n- `.gitignore` – Git ignore rules\n- `README.md` – Project documentation\n\n\u003cbr\u003e\n\n## Technologies Used 🛠️\n\n- **Node.js**\n- **TypeScript**\n- **Express**  \n- **Prisma** \n- **JWT** \n- **Docker** \n- **Jest**\n\n\u003cbr\u003e\n\n## Running Locally 🚀\n\n1. Clone the repository:\n```bash\n   git clone https://github.com/eduardapontel/rocketlog.git\n   cd rocketlog\n```\n\n2. Install dependencies:\n\n```\n  npm install\n```\n  - Create a .env file based on .env-example.\n\n3. Start the database with Docker:\n\n```\n  docker-compose up -d\n```\n\n4. Run database migrations:\n\n```\n  npx prisma migrate dev\n```\n\n5. Start the application:\n\n```\n  npm run dev\n```\n  - The API will be available at (http://localhost:3333).\n\n\u003cbr\u003e\n\n## API Endpoints 🌐\n\n### Authentication\n| Method | Endpoint    | Description                                   |\n|------- |-------------|-----------------------------------------------|\n| POST   | `/sessions` | Login with email/password and receive a JWT token |\n\n### Users\n| Method | Endpoint     | Description                    |\n|------- |--------------|--------------------------------|\n| POST   | `/users`     | Create a new user (customer or seller) |\n| GET    | `/users/me`  | Get logged-in user profile     |\n\n### Deliveries\n| Method | Endpoint            | Description                          |\n|------- |---------------------|--------------------------------------|\n| POST   | `/deliveries`       | Create a new delivery               |\n| GET    | `/deliveries`       | List deliveries (restricted by user role) |\n| GET    | `/deliveries/:id`   | Get details of a specific delivery   |\n| PUT    | `/deliveries/:id`   | Update delivery information          |\n| DELETE | `/deliveries/:id`   | Delete a delivery (seller only)      |\n\n### Delivery Status\n| Method | Endpoint                  | Description                        |\n|------- |---------------------------|------------------------------------|\n| GET    | `/deliveries/:id/status`  | Retrieve current status of a delivery |\n| PATCH  | `/deliveries/:id/status`  | Update the status of a delivery    |\n\n### Delivery Logs\n| Method | Endpoint                        | Description                              |\n|------- |----------------------------------|------------------------------------------|\n| GET    | `/delivery-logs/:deliveryId`     | List all logs of a delivery's status changes |\n\n\u003cbr\u003e\n\n## 🤝 Contributing \n\nFeel free to contribute to this project by submitting issues or pull requests. Your feedback and suggestions are always welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardapontel%2Frocketlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduardapontel%2Frocketlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardapontel%2Frocketlog/lists"}