- There are some cases when in a web application we need to allow or not some functionalities or actions based on user role permissions.
- The purpose of this repo is to implement a solution for this "problem" on a Nextjs App.
- Docker and Docker compose (For MongoDB container)
- Nodejs +20
- Yarn
- Auth0 (Regular Web Application + Machine to Machine)
-
Open Settings and enable Eslint with automatic configuration:
Settings -> Languages & Frameworks -> Javascript -> Code Quality Tools -> ESLintand thickRun eslint --fix on save. -
Open Settings and enable Prettier with automatic configuration:
Settings -> Languages & Frameworks -> Javacript -> Prettierand thickRun on save.
- Typescript
- Nextjs 14 (page router)
- React 18
- Mantine (For UI Components)
- Docker & Docker Compose
- MongoDB
- Get the MongoDB server up an running before the Nextjs App, we need to run
docker compose up. - Install dependencies for the Nextjs app just by running
yarn.
- Now just need to run
yarn dev, the app will be exposed at http://localhost:3000.
- For this I'm using Mongo Express running at http://localhost:8081.
- In order to access to the manager the credentials are
adminas username andpassas password.