Simplified PLC is a nonprofit/passion project aimed towards advancing the quality of students’ education in public K-12 schools. They aim to do so by empowering teachers to create Professional Learning Communities (PLCs), where teachers get into teams to discuss learning strategies for students, implement those strategies, analyze the results, and then refine strategies based on those results. Simplified PLC wants to bring clarity to the process of implementing PLCs for teachers, with the goal of empowering students’ education downstream.
Before starting development, make sure you have these tools installed:
- Node.js - this is our JS runtime for the frontend and the Git hooks. The version we use is in
.nvmrc - Npm - this is our package manager for the frontend
- uv - this is our Python package manager for the backend. It installs the Python version in
backend/.python-versionand all backend dependencies for you - make - runs the backend scripts. It is already installed on macOS and most Linux distributions. On Windows, install it with
winget install ezwinports.make,choco install makeorscoop install make - Postman - helpful for testing API routes
- MongoDB Community - necessary if you want to run database locally
To define and manage environment variables, make sure to maintain .env files in both the frontend and backend directories. Ensure that .env is specified in your root .gitignore file to prevent pushing secrets. This should already be the case, but the secret scanner hook will check for this if something gets changed
Add the .env.frontend and .env.backend from the project google drive to their respective directories in your local branch. (not yet created)
Everyone, including developers who only work on the backend, needs to run npm install in the frontend directory once. This installs the Husky pre-commit and pre-push hooks, which run the secret scanner and the lint checks for both the frontend and the backend. This is also why Node.js is required for backend development.
cd frontend- Run
npm install
cd backend- Run
uv syncto install Python and all dependencies - If running the database locally, make sure to start mongod. For a local database, set
MONGODB_URI=mongodb://localhost:27017/simplified-plcinbackend/.env make startto start the backend
If this works properly you should see these messages in the terminal:
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: Application startup complete.
Follow this url to see the interactive API docs.
cd frontend- Run
npm installto install all dependencies - Run
npm run devto start development server - Server is started on port 3000. Follow this url and you should see the development page.
Run these commands in the frontend directory for linting and formatting. Be sure to run these commands before pushing to github.
npm run lint-fix- fixes all auto-fixable lint errors and reformats codenpm run lint-check- check all lint errors or code style issues without modifying any files
Run these commands in the backend directory for linting, formatting and testing. Be sure to run these commands before pushing to github.
make lint-fix- fixes all auto-fixable lint errors and reformats codemake lint-check- check all lint errors, code style issues and type errors without modifying any filesmake format- reformats code without fixing lint errorsmake test- runs the backend tests