RESTful API backend for the PDV (Point of Sale) System, providing endpoints for products, sales, inventory, users, and more.
- ℹ️ About
- ✨ Features
- 🛠 Tech Stack
- 🚀 Getting Started
- ⚙️ Configuration / Environment Variables
- 📂 Project Structure
- 🧩 API Endpoints / Routes
- 📦 Deployment
- 🤝 Contributing
- 📜 License
- 📧 Contact
This project implements the backend API for the PDV System.
It handles data operations for products, sales, inventory, user management, authentication, and more.
- 📦 CRUD operations for products, inventory, sales
- 🔐 User authentication (login, roles, permissions)
- 📊 Reporting endpoints (e.g. sales summary, inventory status)
- 🗄️ Database integration (Prisma)
- 📈 Input validation, error handling
- 🔁 Pagination, filtering, sorting
- ⚙️ Backend framework: Express
- 🟠 Language: TypeScript
- 🗄️ Database: PostgreSQL
- 🔐 Authentication: JWT
- 📦 ORM / Query Builder: Prisma
Make sure you have:
- 🟩 Node.js (e.g. ≥ 16.x)
- 📦 npm or yarn
- 🗄️ A running database instance (PostgreSQL)
- 🔑 Git
git clone https://github.com/gabrielgv456/pdvsystem_api.git
cd pdvsystem_api
npm install
# or
yarnSet up your environment variables (see below), then:
npm run dev
# or
yarn devThe server should start on a configured port (e.g. http://localhost:4000).
Use a .env file at the project root. Example:
TOKEN_API=
CONVERTERXMLAPI_URL=
FISCALAPI_TOKEN_GENARATE_AUTH =
DATABASE_URL=
FISCALAPI_URL=You can deploy the API to:
- Heroku
- AWS (EC2, Lambda + API Gateway, Elastic Beanstalk)
- DigitalOcean
- Azure
- Render
Ensure environment variables are set in your deployment environment, and your database is accessible. Use a production database and secure secrets appropriately.
- 🍴 Fork the repo
- 🌱 Create a branch:
git checkout -b feature/your-feature - 🛠 Add your changes & tests
- 🧪 Ensure tests pass
- 📤 Push branch & open a Pull Request
This project is licensed under the MIT License. See LICENSE for details.
👤 Author: Gabriel Gonçalves 📩 For issues or feature requests, use the GitHub Issues tab
⭐ If you find this API useful, give the repo a ⭐ on GitHub!