https://github.com/blackpuppy/node-registration
Teachers manage students registration
https://github.com/blackpuppy/node-registration
jest koa mysql node
Last synced: 5 months ago
JSON representation
Teachers manage students registration
- Host: GitHub
- URL: https://github.com/blackpuppy/node-registration
- Owner: blackpuppy
- Created: 2019-03-03T16:37:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-07-30T16:03:00.000Z (11 months ago)
- Last Synced: 2025-07-30T18:32:44.733Z (11 months ago)
- Topics: jest, koa, mysql, node
- Language: JavaScript
- Size: 835 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Student Registration
====================
Local development
-----------------
1. Build and run Docker containers:
```
$ docker-compose up -d
```
2. Run database migrations and seeding:
```
$ docker exec -ti registration_app_1 knex migrate:latest
$ docker exec -ti registration_app_1 knex seed:run
```
3. Application is served at [http://localhost:8094](http://localhost:8094).
Run unit tests
--------------
Run unit tests:
```
$ docker exec -ti registration_app_1 yarn test
```
You should see something like this:
```
PASS __tests__/api.test.js (20.002s)
registration test
✓ it succeeds (2039ms)
common students test
✓ get common students GET /api/commonstudents (28ms)
✓ get common students GET /api/commonstudents (23ms)
suspension test
✓ if the student exists, it succeeds (25ms)
✓ if the student does not exist, it fails (37ms)
retrieve students for notification
✓ if all the teacher and students exist, it succeeds (22ms)
✓ if all the teacher and students exist, it succeeds (11ms)
✓ if the teacher or any students do not exist, it fails (21ms)
Test Suites: 1 passed, 1 total
Tests: 8 passed, 8 total
Snapshots: 0 total
Time: 31.581s
Ran all test suites.
...
```