This commit is contained in:
tmshv committed 2016-11-11 02:36:03 +03:00
1 parent be398bf5ce
commit f121eff445
38 files changed
+498 -267

No files matched your search

+59 -10
View File
@@ -1,12 +1,61 @@
# WWW.ART.SHLISSELBURG.ORG
THE SITE OF ART SCHOOL OF **SHLISSELBURG**
Visit [art.shlisselburg.org](https://art.shlisselburg.org)
# [ART.SHLISSELBURG.ORG](https://art.shlisselburg.org)
Art school of **Shlisselburg**
### Used technologies:
- node.js
- koa.js
- angular.js
- mongodb
## Usage
## Contributers
- Roman Timashev [roman@tmshv.ru](mailto:roman@tmshv.ru)
### How to run
```bash
$ <ENV> npm start
```
### Environments variables
#### PORT
TCP Port for app
```bash
PORT=8080 npm start
```
#### PRIVATE
Path to JSON file with secret keys
```bash
PRIVATE=private.json npm start
```
### How to sync data base
Local DB to remote DB
```bash
DB=hudozka
HOST=<ip_address>
USER=<mongo_user>
PWD=<mongo_password>
mongodump -d ${DB} --gzip --archive | mongorestore -h ${HOST} -u ${USER} -p ${PWD} -d ${DB} --gzip --archive
```
## Build client
```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
- [angular.js](https://angularjs.org) 1.5
- [MongoDB](http://mongodb.org) 3.2
## Contributors
- Roman Timashev ([roman@tmshv.ru](mailto:roman@tmshv.ru))