The goal of this project is to create an online teaching platform. Where teachers and students can work together from almost any location online.
- You will learn real world programming skills which are immediately applicable in today's competitive tech industry.
- Our campus provides students with flexibile, focused and personalized courses for each student.
It's true, I love teaching! So let's hang out with on https://www.youtube.com/c/WebDevJunkie. I stream daily videos teaching you the skills that will help you be succesful. Glad to see you here!
Check out our Initial project goals below, expand for details!
Teachers will be able to create/manage:
         - classes
         - course materials
         - announcements
         - calendar events
         - student communications
Students will be able to:
         - view and enroll in classes.
         - view, upload or download assignments and course materials.
         - view grades, announcements and calendar events.
         - communicate with teachers.
If you would like to contribute: fork this project and clone it to your local machine.
- https://github.com/codyseibert/online-classroom
   - https://docs.github.com/en/get-started/quickstart/fork-a-repo - Ask Cody (Web Dev Junkie) what you can work on in our discord found here: https://discord.gg/MAvSGb3KyK
- Please be sure to 1st send a message in the online-classroom channel found on our discord!
Contribution guidelines are located here
In your terminal
- npm i (install project dependencies locally.)
- cp .env-sample .env (copies .env-sample file to a new local .env file.)
- npx prisma migrate dev (updates prisma db and syncs data.)
- npm run dev (starts the project development server.)
- open http://localhost:3000 (cmd/ctrl + click the link in terminal output to open browser.)
Note: If app is not showing on port http://localhost:3000 Check terminal output
& verify port number. If port is already in use check http://localhost:3001 or 3002, etc...
In an additional terminal tab run Docker:
$ docker compose up
https://docs.docker.com/engine/reference/commandline/compose_up/
In an additional terminal tab run Prisma Studio:
$ npx prisma studio
To test or development this project locally, various user roles are available. Set the following environment variable inside your .env file:
NEXT_PUBLIC_MOCK_NEXT_AUTH=true
Setting this env var will add buttons to the footer, allowing you use and s to switch users easily! Watch here to see implementation:
If you have questions or are unfamiliar with NEXTJS auth, please see the NEXT AUTH docs: https://next-auth.js.org/
This project uses Prisma for database management.
To generate a new migration, run
$ npx prisma migrate dev --name <migration-name>
This project uses TRPC for End-to-end typesafe APIs made easy.
- To see how TRPC is used in this project follow this link: /src/server/router/index.ts
- Individual routers can then be found in the same directory, eg: /src/server/router/assignmenRouter.tsx
NOTE: This project uses TRPC (version 9.26.2). Please make sure you referencing the correct docs version!
Here are the docs for reference if you would like to contribute by migrating from v9 to v10, after v10 is officially released.
Version 10 docs in preparation of future migragration from v9 to v10.
This project uses Tailwind CSS & Headless UI for styles.
TailwindCSS is a utility-first CSS framework, allowing you to apply styles quickly right in component tags.
The docs are great, simply search for the css style you are trying to apply.
Tip: Search using (cmd/ctrl + k) from anywhere in the docs.
Headless UI is a component library and was built to intergrate seemlessly with Tailwind CSS. It includes unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.These components are useful when you need a more complex accessible component but don't want to build it from scratch. Thank you in advance for helping us to keep accessibility a top priority!
Here is the reference for HeadlessUI: https://headlessui.com/
NOTE: Be sure to select the React tab when reviewing/using components.
Recently I walked through deploying this project to Railway.app. Check out the video below.