Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

jsunconf/contriboot-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

contriboot

Contriboot is the Contributions & Interests Application for the JS Unconf. The database backend is a CouchDB, the web frontend a Hapi.js Application. It is inspired by the npm registry.

Developing

Spin up the latest CouchDB and fix the Admin-Party. Contriboot uses admin:admin as credentials.

There are some commands for developing:

The bootstrapping of a database will first try to delete any databases with the name contriboot_dev

 $ npm test               # runs the testsuite
 $ npm run bootstrap      # bootstraps a database with test data
 $ npm run dev            # bootstraps a database and starts the server

Theming

The templates for the facets are located in /templates. You can set your template in the config.js.

The css/less and JavaScript for the themes is located in /static.

Deployment

Couch setup is currently not automated. There is however provisioning/push-views.yml, which takes care of pushing views to an already running couch.

npm install -g couchapp

We automated a lot of tasks, but if you don't use our Ansible based deployment, before deployment, run

cp config-production.js-dist config-production.js

and adjust it to your needs. This file is needed in the root of the project. If you decide to use Ansible, they will be placed on the server for you,

Setup with Ansible

provisioning/private/private-vars.yml

---
db_user: mysecretuser
db_password: mysecretpw
db_host: mycouchdb.com
db_name: contriboot

haproxy_user: myhaproxyuser
haproxy_password: myhaproxypw

app_port: 8080
app_host: '0.0.0.0'
domain: http://example.com
event_name: My Unconference

google_analytics_ua_code: UA-XXXXXX
new_relic_key: 123mykey123

Don't forget to create an inventory file!

[app]
183.75.53.66

[loadbalancer]
188.3.1.180

Setting up app servers

ansible-playbook -i private/production app-server.yml

Setting up a load balancer

ansible-playbook -i private/production loadbalancer.yml

Deployment

ansible-playbook -i private/production deploy-app-server.yml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published