AfterClass-io / afterclass.io-v2

[alpha] v2 of https://afterclass.io!
https://afterclass-io.vercel.app
MIT License
5 stars 2 forks source link

feat(devtool): local development environment with docker #75

Closed davidlhw closed 4 months ago

davidlhw commented 5 months ago

I realise this PR might be a little huge, let me know if it'll be better if I were to do a separate one to address cleanups & deps version bumps instead

Changes

core

optional

Testing

  1. ensure that docker compose is installed
    docker compose version

    or

    docker-compose --version
  2. run docker compose to spin up db container
    docker compose up -d
  3. make a copy of .env.example and rename it to .env
  4. run db migration + seeding command
    npx prisma migrate dev
    npx prisma db seed

    or

    yarn db:reset
  5. confirm with a db client that database is populated as expected image
  6. run yarn dev
  7. navigate to / after logging in as test@test.com user
  8. confirm that data is present image
  9. changing any values from public.university should reflect on / upon refresh
vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
afterclass-io-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 4:11am
davidlhw commented 4 months ago

merging ahead of time to close the other PRs

verified that all are working on 3 separate machines, (1 on windows and 2 on mac)

further improvements will be tackled as separate tasks