Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Tools that needs to be installed:

Tech Stack

  • NestJS - Back-end Framework.
  • Prisma - Object Relational Mapping (ORM) Tool.
  • Supabase - Database, Storage and Authentication Provider.
  • PostgreSQL - Database Management System.
  • Docker - Containerization Tool.
  • Git/Github - Version Control.

Setting up your application

  1. Clone the Repository:
git clone https://github.com/ErriekaP/expensetracker-backend.git
  1. Install the libraries with this command:
npm i
  1. Install and create the docker containers with this command (make sure that you already started your docker application, this may take some time):
npx supabase start
  • If you get errors indicating that the container is unhealthy, run this instead:
supabase start --ignore-health-check
  1. Get supabase credentials:
npx supabase status
  1. Add a .env file
    1. Create a .env file in your root directory
    2. Add this to your .env file:
    DATABASE_URL = DB URL
    SUPABASE_URL = API URL
    SUPABASE_KEY = anon key
  2. Update the database by the Prisma migrations with these commands:
npx prisma generate

Running your application

Run the following commands:

  1. Run the NestJS backend
npm run start
  • 📌 After you finish programming, run this command to stop the docker containers:
    npx supabase stop
  1. Access Prisma Backend
npx prisma studio

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.