Satpam is a secure authenticator and trusted password manager. Built with Next.js, Prisma, and Mantine UI.
-
Clone the repository
git clone [email protected]:mgilangjanuar/satpam.git && \ cd satpam
-
Install dependencies
yarn
-
Create
.env
filecp .env.example .env
Edit the
.env
file with your configuration. -
Migrate database
yarn prisma migrate deploy
-
Build and run the server
yarn build && \ yarn start
Or, you can run the server in development mode
yarn dev
Name | Description | Default | Required |
---|---|---|---|
DATABASE_URL |
Database URL. Eg, postgresql://localhost:5432/satpam?schema=public . |
- | Yes |
SMTP_URL |
SMTP URL. Eg, smtp://username:[email protected]:587 . |
- | Yes |
EMAIL_FROM |
Email sender. | - | Yes |
BASE_URL |
Base URL. | - | Yes |
SECRET_KEY |
Secret key. Random string. | - | Yes |
ENCRYPT_KEY |
Encryption key. Random string. | - | Yes |
SALT |
Salt. Random string. | - | Yes |
DIGEST |
Digest algorithm. The options: string-crypto. | - | Yes |