Add your Tele handle to the Users sheet in the Excel file, and your organisations you are a member of to the userOnOrg sheet in the file. Otherwise, you can manually add it yourself (steps below)
- Install pgadmin (or your own preferrend software, or the CLI if you prefer that) - https://www.pgadmin.org/download/
- Launch it - the default password is 'admin'
- Right-click on "Servers" and click on "Register"
- Ensure that you have launched the docker POSTGRE DB
- Put the "name" in the "General" tab as "nusc"
- In the "Connection" tab, "Host name" is "localhost" and "port" is 5433. The password is "1234" (you can leave the username as "postgres")
- Save it! Note that to save changes to pgadmin, need to use "F6" or click on the tiny save changes button after you add your new rows.
- [If you add not do this already to the Excel sheet] Login to the Telegram via this link and add yourself as a user to the "Users" table in pgadmin.
- [If you add not do this already to the Excel sheet] Add yourself to an IG/organisation in the "UserOnOrg" table
$ docker compose up
$ npm install
$ npm run prisma:migrate
$ npm run prisma:seed
Add the .env file - get it from an existing person using the repo. Be sure to configure the values appropriately.
$ npm run prisma:migrate
$ # If you need to, you can update the seed file and run: npm run prisma:reset
- Change the DATABASE_URL in the .env file to the relevant DB that matches the frontend's .env file
- Change the value of PRISMA_SEED_ENVIRONMENT to DEV or PROD
- Run npm run prisma:reset
docker-compose up -d
to start development databasenpm run dev
to start development serverdocker-compose down
to stop development database