Skip to content

ppijerman/ppi-sensus

 
 

Repository files navigation

Create T3 App

This is an app bootstrapped according to the init.tips stack, also known as the T3-Stack.

How do I deploy this?

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.

How do I get fake data?

Run yarn db-seed

How to get this running on my PC on development?

  1. Run yarn install
  2. Run mongodb server on localhost:27017. Take a look at installing mongodb from the official website.
  3. Use mongosh to create a user called admin with the password admin at the admin database. Take a look at mongodb and mongosh.
  4. Create .env file and copy the content of .env.local to .env
  5. 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)
  6. Run yarn dev

Go directly to dashboard by typing down localhost:3000/dashboard

Step by Step for Windows Users

  1. Download and install node.js https://nodejs.org/en/download/current
  2. Git clone this repo
  3. Open Terminal and go to folder where this repo was cloned
  4. Type yarn install in terminal (if errors appear try npm install --force)
  5. Download the file ".env" from Notion in the Sensus Digitalisasi page and move it to ppi-sensus/ folder
  6. Type yarn dev in terminal to start webapp
  7. Type http://localhost:3000 to open webapp

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.6%
  • Other 0.4%