readme updated

This commit is contained in:
tmshv committed 2018-05-23 01:54:24 +03:00
1 parent 01e2df75d7
commit 0d79157a56
1 file changed
+19 -34
+19 -34
View File
@@ -1,30 +1,27 @@
# [ART.SHLISSELBURG.ORG](https://art.shlisselburg.org) # [ART.SHLISSELBURG.ORG](https://art.shlisselburg.org)
Art school of **Shlisselburg**
Site of Art school of Shlisselburg
## Usage ## Usage
### Build
```bash
$ docker build -t tmshv/hudozka .
```
### How to run ### How to run
```bash #### Add .env file
$ <ENV> npm start
```
MONGO_HUDOZKA_PASSWORD=<strong_password>
HUDOZKA_DB_URI=mongodb://hudozka:strong_password@mongo:27017/hudozka?authSource=admin
``` ```
### Environments variables #### Run
#### PORT
TCP Port for app
```bash ```bash
PORT=8080 npm start $ docker-compose up -d
```
#### PRIVATE
Path to JSON file with secret keys
```bash
PRIVATE=private.json npm start
``` ```
### How to sync data base ### How to sync data base
@@ -39,23 +36,11 @@ PWD=<mongo_password>
mongodump -d ${DB} --gzip --archive | mongorestore -h ${HOST} -u ${USER} -p ${PWD} -d ${DB} --gzip --archive mongodump -d ${DB} --gzip --archive | mongorestore -h ${HOST} -u ${USER} -p ${PWD} -d ${DB} --gzip --archive
``` ```
## Build client ## Based on:
- [NodeJS](http://nodejs.org) 10.0
```bash
$ NODE_ENV=production gulp deploy
```
For developer purposes:
```bash
$ gulp deploy
```
### Based on:
- [NodeJS](http://nodejs.org) 6.0
- [koa.js](http://koajs.com) 2.0 - [koa.js](http://koajs.com) 2.0
- [angular.js](https://angularjs.org) 1.5 - [React](https://react.org) 16.3
- [MongoDB](http://mongodb.org) 3.2 - [MongoDB](http://mongodb.org) 3.6
## Contributors ## Contributors
- Roman Timashev ([roman@tmshv.ru](mailto:roman@tmshv.ru)) - Roman Timashev ([roman@tmshv.ru](mailto:roman@tmshv.ru))