-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
177 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ body { | |
|
||
main { | ||
padding: 16px; | ||
text-align: center; | ||
} | ||
|
||
button { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Папка для хранения динамического контента. | ||
Например, при production сборке в CSS файлах будут автоматически удаляться пробелы и пустые строки. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Nuxt-Express | ||
|
||
Базовый шаблон для работы Nuxt в качестве middleware для Express. | ||
Приложение работает в едином процессе. | ||
|
||
### Используемые технологии | ||
|
||
Nuxt.js, Express.js, Mongoose.js, MongoDB. | ||
|
||
### Установка | ||
|
||
Предварительно установите Node.js (https://nodejs.org/en/) и MongoDB (https://www.mongodb.com/try/download/community). | ||
Затем в консоли пропишите: | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
### Настройка глобальных переменных | ||
|
||
В корневой папке проекта создайте файл ".env". В нём укажите: | ||
|
||
- BASE_URL: домен вашего сайта | ||
- PORT: порт, на котором будет работать приложение | ||
- DATABASE: название базы MongoDB, с которой будет работать приложение | ||
|
||
Например, для разработки: | ||
|
||
```bash | ||
BASE_URL=http://localhost:3000 | ||
PORT=3000 | ||
SECRET=site | ||
``` | ||
|
||
Для production: | ||
|
||
```bash | ||
BASE_URL=https://site.ru | ||
PORT=3000 | ||
SECRET=site | ||
``` | ||
|
||
### Запуск в режиме разработки | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
### Запуск в продакшене | ||
|
||
```bash | ||
npm run build | ||
npm start | ||
``` |
This file contains 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
Oops, something went wrong.