This is an app bootstrapped according to the init.tips stack, also known as the T3-Stack.
Follow our deployment guides for Vercel and Docker for more information.
Remember to look the .env.example and fill the .env file accordingly. This project currently uses mongodb for the prisma.
Run yarn db-seed
- Run
yarn install
- Run mongodb server on localhost:27017. Take a look at installing mongodb from the official website.
- Use mongosh to create a user called admin with the password admin at the admin database. Take a look at mongodb and mongosh.
- Create .env file and copy the content of .env.local to .env
- Populate fake data for testing purposes by running
yarn db-seed
(If this fails, then there might probably be a mismatch with the database config and the .env) - Run
yarn dev
Go directly to dashboard by typing down localhost:3000/dashboard
- Download and install node.js https://nodejs.org/en/download/current
- Git clone this repo
- Open Terminal and go to folder where this repo was cloned
- Type
yarn install
in terminal (if errors appear trynpm install --force
) - Download the file ".env" from Notion in the Sensus Digitalisasi page and move it to ppi-sensus/ folder
- Type
yarn dev
in terminal to start webapp - Type
http://localhost:3000
to open webapp