Skip to content

JRWu/invoice-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Invoice Application

A full-stack invoicing application built with React.js frontend and Flask backend.

Features

  • User account creation and authentication
  • Invoice creation and management
  • Report generation from invoices
  • Responsive design

Tech Stack

  • Frontend: React.js with responsive design
  • Backend: Flask (Python)
  • Database: SQLite
  • Environment: Python virtual environment (.venv)

Setup Instructions

Backend Setup

  1. Create and activate virtual environment:
python3 -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install Python dependencies:
pip3 install -r requirements.txt
  1. Initialize the database:
cd src/backend
python3 init_db.py
  1. Run the Flask server:
python3 app.py

Frontend Setup

  1. Install Node.js dependencies:
cd src/frontend
npm install
  1. Start the React development server:
npm start

Project Structure

invoice-application/
├── src/
│   ├── backend/
│   │   ├── app.py
│   │   ├── models.py
│   │   ├── routes/
│   │   └── database.db
│   └── frontend/
│       ├── src/
│       ├── public/
│       └── package.json
├── requirements.txt
└── README.md

API Endpoints

  • POST /api/auth/register - Register new user
  • POST /api/auth/login - User login
  • GET /api/invoices - Get user invoices
  • POST /api/invoices - Create new invoice
  • GET /api/reports - Generate reports

Usage

  1. Register a new account or login
  2. Create invoices with customer details and line items
  3. View and manage your invoices
  4. Generate reports from your invoice data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published