first commit
This commit is contained in:
commit
9ada9dd667
42
.gitignore
vendored
Normal file
42
.gitignore
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||
|
||||
# Compiled output
|
||||
/dist
|
||||
/tmp
|
||||
/out-tsc
|
||||
/bazel-out
|
||||
|
||||
# Node
|
||||
/node_modules
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
|
||||
# IDEs and editors
|
||||
.idea/
|
||||
.project
|
||||
.classpath
|
||||
.c9/
|
||||
*.launch
|
||||
.settings/
|
||||
*.sublime-workspace
|
||||
|
||||
# Visual Studio Code
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
.history/*
|
||||
|
||||
# Miscellaneous
|
||||
/.angular/cache
|
||||
.sass-cache/
|
||||
/connect.lock
|
||||
/coverage
|
||||
/libpeerconnection.log
|
||||
testem.log
|
||||
/typings
|
||||
|
||||
# System files
|
||||
.DS_Store
|
||||
Thumbs.db
|
42
data.json
Normal file
42
data.json
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
"groups": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "ПИбд-21"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "ПИбд-22"
|
||||
},
|
||||
{
|
||||
"name": "ПИбд-23",
|
||||
"id": 3
|
||||
}
|
||||
],
|
||||
"students": [
|
||||
{
|
||||
"id": 1,
|
||||
"firstName": "Иван",
|
||||
"lastName": "Иванов",
|
||||
"email": "mail1@mail.ru",
|
||||
"phone": "8 999 777 66 55",
|
||||
"groupId": 1
|
||||
},
|
||||
{
|
||||
"firstName": "Петр",
|
||||
"lastName": "Петров",
|
||||
"email": "mail2@mail.ru",
|
||||
"phone": "8 992 883 88 33",
|
||||
"groupId": 1,
|
||||
"id": 2
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"firstName": "Степан",
|
||||
"lastName": "Сидоров",
|
||||
"email": "mail3@mail.ru",
|
||||
"phone": "8 888 888 8888",
|
||||
"groupId": 3
|
||||
}
|
||||
]
|
||||
}
|
2050
package-lock.json
generated
Normal file
2050
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
12
package.json
Normal file
12
package.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "fake-db",
|
||||
"version": "1.0.0",
|
||||
"scripts": {
|
||||
"start": "json-server --watch data.json -p 8079"
|
||||
},
|
||||
"dependencies": {
|
||||
},
|
||||
"devDependencies": {
|
||||
"json-server": "0.17.0"
|
||||
}
|
||||
}
|
15
readme.md
Normal file
15
readme.md
Normal file
@ -0,0 +1,15 @@
|
||||
Установка nodejs:
|
||||
1. Заходим на сайт https://nodejs.org/en/
|
||||
2. Скачиваем LTS версию
|
||||
3. Устанавливаем
|
||||
|
||||
Установка зависимостей:
|
||||
npm install
|
||||
|
||||
Запуск:
|
||||
npm start
|
||||
|
||||
Примеры:
|
||||
- http://localhost:8079
|
||||
- http://localhost:8079/students
|
||||
- http://localhost:8079/students?_expand=group
|
Loading…
Reference in New Issue
Block a user