Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ampatspell/portfolio
Photography portfolio webapp
https://github.com/ampatspell/portfolio
ember gallery photography portfolio
Last synced: about 1 month ago
JSON representation
Photography portfolio webapp
- Host: GitHub
- URL: https://github.com/ampatspell/portfolio
- Owner: ampatspell
- Created: 2016-10-17T07:05:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-03T22:22:22.000Z (over 7 years ago)
- Last Synced: 2024-10-25T21:51:00.298Z (3 months ago)
- Topics: ember, gallery, photography, portfolio
- Language: JavaScript
- Size: 3.11 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Photography portfolio
* Ember.js
* ember-cli-sofa
* CouchDB 1.6 or 2.0Deployed as a couchapp.
**WARNING: Do not run in production. Database lacks `validate_doc_updates` for now, coming soon**
## Screenshots
[![Video](/doc/changes-listener-video-preview.png)](https://vimeo.com/221892468)
![Gallery](/doc/1.png)
![Gallery](/doc/2.png)
![Gallery](/doc/3.png)
## Install
``` plain
$ git clone https://github.com/ampatspell/portfolio.git
$ cd portfolio
$ npm install; bower install
$ cp sites/base-example.js sites/base.js
`````` javascript
// sites/base.js
module.exports = {
url: 'http://remote:[email protected]:5984'
};
```## Run locally
This will run default site configuration.
```
$ ember s
$ open http://127.0.0.1:5984
```## Setup database
Open http://127.0.0.1:5984/_setup, login as a CouchDB admin. This will create database if missing and insert all necessary design documents.
## Customize site
```
$ cp sites/default.js sites/yoursite.js
`````` javascript
// sites/yoursite.js
module.exports = Object.assign({
title: 'Yoursite',
theme: 'yoursite',
admin: 'portfolio-yoursite-admin',
database: 'portfolio-yoursite'
}, require('./base'));
``````
$ cp -r app/styles/default app/styles/yoursite
```## Deploy
``` plain
$ SITE=yoursite ember deploy production
```Add CouchDB vhost:
``` plain
vhosts -> www.yoursite.com -> //_design/portfolio/_rewrite
```Add nginx host configuration:
``` plain
server {
server_name www.site.com;
client_max_body_size 30M;location / {
proxy_pass http://localhost:5984;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;# for _changes EventStream proxying
# https://stackoverflow.com/questions/13672743/eventsource-server-sent-events-through-nginx
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
}}
```