This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Основной файл приложения | |
import { AuthManager } from './modules/auth.js'; | |
import { StudentsManager } from './modules/students.js'; | |
import { SubjectsManager } from './modules/subjects.js'; | |
import { GradesManager } from './modules/grades.js'; | |
import { StorageManager } from './utils/storage.js'; | |
import { Helpers } from './utils/helpers.js'; | |
class EZachetkaApp { | |
constructor() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>📚 Электронная зачетка</title> | |
<link rel="stylesheet" href="styles.css"> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet"> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>📚 Электронная зачетка</title> | |
<link rel="stylesheet" href="styles.css"> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet"> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Создайте файл add-grades.js и запустите: node add-grades.js | |
const db = require('./database'); | |
const grades = [ | |
[1, 1, 5, 'exam', '2024-01-20', 1], | |
[1, 2, 4, 'test', '2024-01-21', 2], | |
[2, 1, 3, 'exam', '2024-01-20', 1], | |
[3, 3, 5, 'test', '2024-01-22', 3] | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DB_HOST=localhost | |
DB_USER=root | |
DB_PASSWORD=ваш_пароль_MySQL | |
DB_NAME=gradebook | |
JWT_SECRET=мой_супер_секретный_ключ_который_никто_не_угадает_12345 | |
PORT=3000 | |
# Настройки сервера | |
NODE_ENV=production | |
PORT=3000 | |
CORS_ORIGIN=http://localhost:3000 |