Website made with Next JS with SQLite for a school project.
repo: https://github.com/FlafyDev/next-js-sqlite
- Create a file named
.env.localin the project's directory with the content:
COOKIE_SECRET=replace_this_with_32_random_characters
- Open a terminal on the project's directory and enter the following commands:
npm install
npm run build
npm run reset-database
- Open a terminal on the project's directory and enter the following command:
npm run start
or for debugging:
npm run dev
npm run reset-database
Generates 2 users by default:
[
{
Username: "User",
Password: "UserUser",
},
{
Username: "Admin",
Password: "AdminAdmin",
},
]
MIT