A course evaluation management platform for educational institutions.
Before you begin, ensure you have installed:
-
Node.js (v18 or higher)
-
npm
-
docker
- Install pnpm
npm install -g pnpm@latest-10- Clone the repository
git clone https://github.com/Kuhame/backfeed.git
cd backfeed- Install dependencies
pnpm install- Environment Setup
Create a .env file in the root directory with the following variables:
| Variable | Description | Value (Docker Compose) |
|---|---|---|
| DATABASE_URL | PostgreSQL connection string | postgresql://postgres:postgres@localhost:5433/backfeed_app |
| NEXTAUTH_URL | Base URL for NextAuth | http://localhost:3000 |
| NEXTAUTH_SECRET | Secret key for JWT encryption | secret_key |
- Database Setup
# Start database
docker compose up
# Seed database
npx prisma migrate reset- Start the development server
pnpm run devThe application will be available at http://localhost:3000
- Run tests
npm run testYou can log in with these test accounts:
-
Administrator
- Email address: admin@backfeed.com
- Password: admin123
-
Teachers
- Email addresses:
- Password: teacher123
-
Students
- Email addresses:
- Password: student123
-
Reset Database:
npx prisma migrate reset -
View Database:
npx prisma studio -
Update Schema:
npx prisma db push
src/
├── app/ # Next.js app router
│ ├── (views)/ # Protected routes
│ ├── api/ # API routes
│ ├── controllers/ # Business logic
│ └── models/ # Database models
├── components/ # React components
├── hooks/ # Custom React hooks
├── lib/ # Utility functions
└── types/ # TypeScript types
-
Next.js 15 (App Router)
-
TypeScript
-
Prisma (ORM)
-
PostgreSQL
-
NextAuth.js
-
Tailwind CSS
-
Shadcn/ui
The following features were planned but not yet implemented:
- Allow admin to view all archived versions of a template.
- Enable writing additional questions for a survey with the following options:
- Overwrite Template A
- Save as a new template (Template B)
- Do not save and create the survey as-is.
- Modify an existing template and overwrite it.
- Allow teachers to write comments on surveys.
