A Backend for Expense Tracker App that is made through node js and prisma.
- Express - Express - Node.js web application framework (expressjs.com)
- Prisma - Prisma - Next-generation Node.js and TypeScript ORM for Databases
This is the File Structure of the server with their corresponding usage
- controller - where the logic of my backend placed.
- prisma - folder for the functioning of prisma
- routes - where the routes of my backend placed
- utils - my constants and initializations to avoid initializing objects repeatedly.
Note: Run this before the Expense Tracker Frontend`
- Clone this repository
git clone https://github.com/dimdejesus/expense-tracker-backend.git- create a .env variable (use .env.example as an example)
- Install the dependencies
npm install- Migrate the migration for primsa ORM
npx prisma migrate dev- Run the seed for dummy data (optional)
npx prisma db seed- Run this web app
npm run serverStart