This project is an API for handling transactions, built with Fastify, Knex, and SQLite.
- Create, list, and view transaction summaries
- Session-based security using cookies
- TypeScript for type safety
-
Install Dependencies:
npm install
-
Configure Environment Variables:
Create a
.env
file based on your requirements. You must at least set theDATABASE_URL
variable. -
Run Migrations:
npm run knex migrate:latest
-
Start the Development Server:
npm run dev
Ensure code quality by running:
npm run lint
npm run lint:fix
- The project uses SQLite for database storage; the database file is located as specified in your configuration.
- For more information about how the API works, inspect the code in the
src
folder.
ISC