This is a Next.js project bootstrapped
with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
The local database is set up with docker for interoperability's sake.
To run it locally, do these commands:
$ docker-compose up -d
#runs docker, might pull an image before
$ npx prisma migrate dev
#to push the schema into the database
$ npx prisma db seed
#to populate database with fake data
$ npx prisma studio
#to open a database viewer
$ docker stop
#to stop container
To run the password reinitialization, you need create .env.local file in the root of the project and add the following variables, use https://ethereal.email/ and create a user to use the service and add NODE_ENV=development to the .env file:
JWT_SECRET=your-secret ETHEREAL_USER=email-user ETHEREAL_PASS=password-user