University project on the subject "Internet technologies" at SPbSTU of the 1st year of the master's degree.
Just clone the repository somewhere:
git clone https://github.com/MeShootIn/poly-it
- Install all modules:
npm install
- Run:
npm run start
- Run in dev-mode:
npm run dev
- Run all migrations and seed all files:
npm run db:init
- Rollback all migrations:
npm run db:rollback
"xo": {
"ignores": [
"db/seeds"
],
"rules": {
"new-cap": [
"error",
{
"capIsNewExceptions": [
"Router"
]
}
]
}
},
The repository has the following directory structure:
📂 .
├── 📜 .gitignore
├── 📂 controllers
│ └── 📜 employee.js
├── 📂 daos
│ └── 📜 employee.js
├── 📂 db
│ ├── 📜 db.js
│ ├── 📂 migrations
│ │ ├── 📜 20211026123032-create-positions-table.js
│ │ └── 📜 20211026123036-create-employees-table.js
│ └── 📂 seeds
│ ├── 📜 01-positions.js
│ └── 📜 02-employees.js
├── 📜 index.js
├── 📜 package-lock.json
├── 📜 package.json
├── 📜 README.md
├── 📂 routes
│ └── 📜 employees.js
├── 📂 services
│ └── 📜 employee.js
└── 📜 yarn.lock