Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robinmalfait/simple-invoice
Small simple invoice generator
https://github.com/robinmalfait/simple-invoice
Last synced: about 2 months ago
JSON representation
Small simple invoice generator
- Host: GitHub
- URL: https://github.com/robinmalfait/simple-invoice
- Owner: RobinMalfait
- Created: 2023-07-18T23:04:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-27T15:29:16.000Z (about 2 months ago)
- Last Synced: 2024-10-27T16:27:44.043Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.87 MB
- Stars: 17
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Simple Invoice Generator
This is a simple invoice generator tool. The data is in the code there is no database or anything.
### Getting started
1. Install dependencies:
```
npm install
```2. Copy the example `.env`
```
cp .env.example .env
```3. Run the project
```
npm run dev
```### Environment variables
- `CLASSIFIED_MODE` — This is the default value to enable classified mode. Once you change it in the
application it will be persisted to the database. Classified mode will blur out all numbers and
personal identifiable information. If you spot a case where this is not true, please report it as
a bug report.
- `NEXT_PUBLIC_ENVIRONMENT` environment variableThis variable is used to know which data to load and which design to load.
- `./src/data/${NEXT_PUBLIC_ENVIRONMENT}.ts` contains all the data for your application.
- `./src/ui/invoice/designs/${NEXT_PUBLIC_ENVIRONMENT}/invoice.tsx` contains the design for your
invoices.If you want to create a new environment, then you have to make sure that files exists in the above
mentioned locations and we do the rest.Note: Only the `example` environment is visible to Git, the other files and folders are ignored
by default. But, if you make changes, do make sure you are not comitting real data to a (public)
repository.If you want a different design source file, or different data source file, then you can also set
these environment variables:- `NEXT_PUBLIC_DATA_SOURCE_FILE` — This has precedence over `NEXT_PUBLIC_ENVIRONMENT`
- `NEXT_PUBLIC_DESIGN_SOURCE_FILE` — This has precedence over `NEXT_PUBLIC_ENVIRONMENT`