DEV Community

Cover image for Making the most boring website ever with TypeScript, NestJs, React and others. Part 9.
NordicBeaver
NordicBeaver

Posted on

Making the most boring website ever with TypeScript, NestJs, React and others. Part 9.

This series is about making a generic website for a local business with TypeScript, NodeJs, NestJs, Prisma, React and NextJs. I'm trying to make my videos quite short, about 10 minutes each (except for the first one), while putting as much content there as I can. Here is the full playlist.

In this episode:

User Roles

So first we will add some roles for the users. We'll only need 3 for now: ADMIN, MANAGER and GUEST.
To do that, we'll update our Prisma model and learn how to use guards in NestJs to protect different routes based on current user's role.

Deployment to Dokku

Then, I'll try to explain how to publish a web application for everyone to see. I use Dokku for my personal projects and I'll show you how simple it is to set it up and deploy to it.

Since the project is now officially online (even though very unfinished), here are the links: Website, Admin Panel (you can use guest/guest to login)

Top comments (0)