This content originally appeared on DEV Community and was authored by NordicBeaver
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)
This content originally appeared on DEV Community and was authored by NordicBeaver
NordicBeaver | Sciencx (2021-12-02T12:47:55+00:00) Making the most boring website ever with TypeScript, NestJs, React and others. Part 9.. Retrieved from https://www.scien.cx/2021/12/02/making-the-most-boring-website-ever-with-typescript-nestjs-react-and-others-part-9/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.