A comprehensive business management REST API built with Ruby on Rails, designed to help small businesses manage their customers, invoices, and quotations efficiently.
- Customer Management: Handle both individual and professional customers
- Invoice Management: Create, update, and track invoices with line items
- Quotation Management: Generate and manage quotations
- Multi-tenant Architecture: Each business entity operates independently
- JWT Authentication: Secure token-based authentication
- Role-based Authorization: Built with CanCan for flexible permission management
- Account Management: User registration, profile management, and settings
- Ruby 3.2.2
- PostgreSQL 12+
- Bundler 2.0+
- Docker (for deployment)
git clone https://github.com/Yoann-86/Easybiz-api.gitbundle install# Generate Swagger documentation
rake rswag:specs:swaggerize# Configure your database in config/database.yml
rails db:create
rails db:migraterails serverThe API will be available at http://localhost:3000
Visit http://localhost:3000/api-docs to explore the API using Swagger UI.
# Run all tests
rspec
# Run specific test files
rspec spec/controllers/
rspec spec/models/
# Run with documentation format
rspec --format documentation- Controllers: Comprehensive API endpoint testing
- Models: Business logic and validation testing
- Factories: FactoryBot for test data generation
- Integration: Full request/response cycle testing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Write tests for your changes
- Ensure all tests pass (
rspec) - Run code quality checks (
rubocop,brakeman) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- Create an issue on GitHub
- Check the API documentation at
/api-docs - Review the test files for usage examples
- Invoices and Quotes handling
- Email notifications
- PDF generation for invoices/quotations
- Advanced reporting
EasyBiz API - Simplifying business management, one API call at a time.