A web application for MahitdayQuiz registration and announcements
Successor of docchula/amsci-website, created by Sarun Intaralawan. Based on Angular.
One simple way to get started with the development is to use VSCode's Dev Container feature.
-
Follow the instructions to install VSCode with Dev Container: https://code.visualstudio.com/docs/devcontainers/containers#_installation
-
When you open this folder in VSCode, you'll get a prompt on the bottom right side of the screen. Select the Reopen in Container button.
- Once the container is opened (which may take a couple of minutes), try to open SQLTools to see the database. At this point, it should be empty.
- Run the command
npx prisma migrate deploy
- Check back into SQLTools and you should see the database being populated with some tables.
When you run npm run dev, a prompt will show you how to open the app on the bottom right side of the screen.
If you'd like to access the database (e.g., using GUI tools such as DBeaver or DataGrip), go to the PORTS panel (should be a tab on the bottom panel). Then select Forward a Port (or Add Port) and enter 3306 as the port number. Then you can connect to the database using localhost as the host/IP and 3306 as the port number. The username is root, the password is empty (no password), and the database name is DATABASE.
In case of issues with the containers, go into the Docker control panel and delete containers with mahitday_devcontainer in the name.
Alternatively, you can use the "Rebuild" command in VSCode (open the command dialog box with Ctrl+Shift+P). It will be named "Rebuild and Reopen" or similar if you're outside the container, and named "Rebuild" or similar if you're inside the container.
If you'd like to reset the database (e.g., in case you've corrupted it), then delete the volume with the name mahitday_devcontainer_mahitday-dev-db and rebuild the containers (see above).
SMCU developers by generation. Add your name here when you're continuing the legacy!
- MDCU78: Ittipat Thanabodikarn
- MDCU78: Punyawish Patumhirunruksa






