NextCMS is an Content Management System driven by Next.js, it has been built from the groud up to serve as a template to build apps with ease that are in need of an administered and interactable website.
[ALT]: NextCMS interface login and users preview.
- Make sure you've installed Docker.
- Rename
/.env-template
to/.env
or make your own/.env
file. - Change the contents of the file
/.env
accordingly. - Run:
docker build -t nextcms .
- Run:
docker run --name NextCMS -p 3000:3000 -d nextcms
- Populate the database:
docker exec NextCMS npx prisma db seed
NextCMS should now be accessible at http://0.0.0.0:3000.
Level | Name | Can Login | Edit Users |
---|---|---|---|
4 | Administrator | Yes | Yes |
3 | Moderator | Yes | Yes |
2 | Viewer | Yes | No |
1 | Unprivileged | No | No |
Command | Description | requires |
---|---|---|
npm start |
Production / Deployment | npm run build |
npm run dev |
Use this for development | |
npm run build |
Creates an optimized build | |
npx prisma db push |
Database preparation | |
npx prisma db seed |
Populate the database | npx prisma db push |