2color/real-world-grading-app
关于
An example of a real-world REST API backend built with TypeScript, Hapi, Prisma, and PostgreSQL.
数据与分析实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Real-world class grading backend
⚠️ Warning
This repo is no longer actively maintained, however it's still a great educational resource for building REST APIs in Node.js.
Intro
A real-world class grading application built with Prisma.
The grading application is used to manage enrollment in online classes, tests (as in exams) for classes, and test results.
The goal if this application is to showcase a real-world scenario of an application using Prisma. the following aspects of Prisma
- Data modeling
- CRUD
- Aggregations
- API layer
- Validation
- Testing
- Authentication
- Authorization
- Integration with other APIs
- Deployment
Check out the associated tutorial to learn more about how the backend was built.
Data model
The development of this project is driven by the database schema (also known as the data model). The schema is first designed to represent the following concepts:
- User: this can be a student or a teacher, or both. The role of the user is determined through their association with a course.
- Course: represent a course that can have multiple students/teachers. Each user can be associated with multiple courses either as a student or as a teacher.
- CourseEnrollment:
- Test: Each course can have many tests
- TestResult: Each Test can have many TestReusults that is associated with a student
These are defined in the Prisma schema. The database schema will be created by Prisma Migrate.
Tech Stack
- Backend:
- PostgreSQL
- Node.js
- Prisma
- TypeScript
- Jest
- Hapi.js
How to use
Install npm dependencies:
npm install
探索相关项目
加载中…