Node: v18.16.0
https://www.youtube.com/watch?v=JHXKjRc8upQ
- First clone the repository
git clone https://github.com/DaviGGA/social-media-api-v2.git
- Install all necessary packages
npm install
- At ./prisma/schema.prisma you can find the database models and datasource, change it or create a database called socialmedia with user as "postgres" and password as "postgres" at localhost
// This is the PostgreSQL template for DB URL
postgresql://USER:PASSWORD@HOST:PORT/DATABASE
- Run prisma migrations
npx prisma migrate dev
- Run the application
npm run dev
You can test it out only using Postman, Insonmia, etc. but i also made a simple Front-End, here is the repo: https://github.com/DaviGGA/social-media