Skip to content

Commit

Permalink
#123 Добавлен быстрый запуск watch dev
Browse files Browse the repository at this point in the history
  • Loading branch information
gbagretsov committed May 2, 2022
1 parent f5489b2 commit 34655bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- ngrok
- В корне проекта создайте файл `.env` с конфигурацией. Все используемые переменные окружения описаны в `.env.example`
- Создайте БД и укажите URL для доступа к БД в файле `.env`. Схема БД и пример данных в папке `migrations`. Запуск миграций: `npm run migrate up`
- Запустите локальный сервер: ```npm run watch dev```
- Запустите локальный сервер: ```npm start```
- Настройте туннелирование для доступа ВК API к локальному серверу: ```ngrok http <PORT>```

Получение токена пользователя для ВК API: `https://oauth.vk.com/authorize?client_id=<APP_ID>&redirect_uri=https://oauth.vk.com/blank.html&display=popup&scope=friends,wall,offline,video,photos&response_type=token`
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"main": "compiled/app/index.js",
"scripts": {
"start": "npm run watch dev",
"heroku-postbuild": "npm run build-front-prod && npm run build-back",
"dev": "npm run build-front && npm run build-back && node compiled/app/index",
"daily": "npm run build-back && node compiled/app/daily/run-daily",
Expand Down

0 comments on commit 34655bc

Please sign in to comment.