Based on video https://www.youtube.com/watch?v=pmXfvd6Zqg4, I create this repo for test and deploy an node app on Render.
Using:
typescript
prisma
for ORMtsup
for buildfastify
for simple routeszod
for data validations
And use postgresql
for database.
1 - Install node modules
$ npm install
2 - Config postgresql string connection on .env
file
3 - Start postgresql container
$ docker compose up -d
4 - Install migrations
$ npx prisma migrate dev
5 - Start HTTP Server
$ npm run dev
Now, you can list users: http://localhost:3333/users