Go to file
2025-06-14 13:45:25 -05:00
src/server feat(server): initial implementation with injectable database and testable server - Set up project structure, database schema, and GraphQL API. Implement injectable Knex database for clean testability. Add test printer, migrations, and unit tests. All server and test code is clean, modular, and ready for further development. 2025-06-14 13:45:25 -05:00
.gitignore feat(server): initial implementation with injectable database and testable server - Set up project structure, database schema, and GraphQL API. Implement injectable Knex database for clean testability. Add test printer, migrations, and unit tests. All server and test code is clean, modular, and ready for further development. 2025-06-14 13:45:25 -05:00
jest.config.js feat(server): initial implementation with injectable database and testable server - Set up project structure, database schema, and GraphQL API. Implement injectable Knex database for clean testability. Add test printer, migrations, and unit tests. All server and test code is clean, modular, and ready for further development. 2025-06-14 13:45:25 -05:00
knexfile.ts feat(server): initial implementation with injectable database and testable server - Set up project structure, database schema, and GraphQL API. Implement injectable Knex database for clean testability. Add test printer, migrations, and unit tests. All server and test code is clean, modular, and ready for further development. 2025-06-14 13:45:25 -05:00
package-lock.json feat(server): initial implementation with injectable database and testable server - Set up project structure, database schema, and GraphQL API. Implement injectable Knex database for clean testability. Add test printer, migrations, and unit tests. All server and test code is clean, modular, and ready for further development. 2025-06-14 13:45:25 -05:00
package.json feat(server): initial implementation with injectable database and testable server - Set up project structure, database schema, and GraphQL API. Implement injectable Knex database for clean testability. Add test printer, migrations, and unit tests. All server and test code is clean, modular, and ready for further development. 2025-06-14 13:45:25 -05:00
README.md feat(server): initial implementation with injectable database and testable server - Set up project structure, database schema, and GraphQL API. Implement injectable Knex database for clean testability. Add test printer, migrations, and unit tests. All server and test code is clean, modular, and ready for further development. 2025-06-14 13:45:25 -05:00
tsconfig.json feat(server): initial implementation with injectable database and testable server - Set up project structure, database schema, and GraphQL API. Implement injectable Knex database for clean testability. Add test printer, migrations, and unit tests. All server and test code is clean, modular, and ready for further development. 2025-06-14 13:45:25 -05:00

Task Receipts

A task management system with receipt printer integration, designed to help people with ADD keep track of their tasks. The system prints tasks and steps to a receipt printer, making it easy to have physical copies of instructions.

Features

  • Group tasks into categories
  • Break down tasks into steps with detailed instructions
  • Print tasks and steps to a receipt printer
  • Track frequently used and recently printed tasks
  • Support for images in instructions (automatically converted to black and white for printing)
  • Mobile and desktop web interface
  • GraphQL API for efficient data fetching

Prerequisites

  • Node.js 18 or later
  • SQLite 3
  • USB receipt printer (optional, test mode available)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/task-receipts.git
    cd task-receipts
    
  2. Install dependencies:

    npm install
    
  3. Set up the database:

    npx knex migrate:latest
    
  4. Start the development server:

    npm run dev
    

The server will start at http://localhost:3000, and the GraphQL endpoint will be available at http://localhost:3000/graphql.

Development

  • npm run dev - Start the development server
  • npm run build - Build the project
  • npm start - Start the production server
  • npm test - Run tests

Testing

The project includes a test printer implementation that writes receipts to text files in the test-output directory. This makes it easy to test the printing functionality without a physical printer.

License

MIT