- Node.js (LTS version)
- npm
- PostgreSQL database
- Redis
- Anthropic API key
-
Clone the repository:
git clone https://github.com/daytimedrinkingclub/teacherop.git cd teacherop
-
Install Dependencies:
npm i
-
Set up environment variables:
- Copy
.env.example
to.env
- Update the database connection details and other necessary variables
- Copy
-
Run database migrations:
node ace migration:run
-
Start the development server and background jobs:
npm run dev npm run jobs #separate process
The application should be running at http://localhost:3333
teacherop/
├── app/ ────────────── # Contains the core application logic
│ ├── controllers/
│ ├── jobs/
│ ├── lib/
│ ├── middleware/
│ ├── models/
│ └── validators/
├── config/ ─────────── # All the configuration files
├── database/ ───────── # DB migrations, seeds and factories
│ └── migrations/
├── inertia/ ────────── # All the frontend code
│ ├── app/
│ ├── css/
│ ├── lib/
│ └── pages/
├── providers/ ──────── # All the singleton classes that are used through out the app
├── start/
│ └── route.ts ────── # All the available routes
└── tests/