Name: mibit
Owner: Futurice
Description: A web app written in Elm
Forked from: Tradenomiliitto/tradenomiitti
Created: 2017-07-18 06:36:40.0
Updated: 2018-05-24 13:47:58.0
Pushed: 2018-05-24 13:47:57.0
Size: 1440
Language: Elm
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
MiBit is a social web service for the members of Mothers in Business MiB ry. MiBit is a fork of Tradenomiitti, a free open source project made for Tradenomiliitto.
Note: Since both this fork and the upstream project is still under active development, some of the configuration related things (database names, deployment repository name etc.) have not been changed to make merges from upstream easier. This might change later.
Server installation for MiBit uses Ansible.
The included install configuration assumes Ubuntu with passwordless sudo access
over SSH with the user ubuntu
and Python 2 installed on the server and
symlinked to python
. The server needs to have a public IP and a public domain
pointing at it, or else Let's Encrypt will fail.
You can install servers by running (replace ENV with dev, qa, or prod - defaults to dev if ENV_TO_DEPLOY is not specified):
install
path/to/sideloaded/assets/* conf/assets/ # we don't want fonts/images/etc in repo
run preansible
TOR conf/inventory.ini # edit with your favorite editor
TO_DEPLOY=ENV npm run serverinstallbase
remote add ENV ubuntu@SERVER:/srv/tradenomiitti.git
push ENV master # for each ENV
TO_DEPLOY=ENV npm run serverinstallpm2
Deployment of a new version is done using git.
Once:
remote add ENV ubuntu@SERVER:/srv/tradenomiitti.git
To deploy:
TO_DEPLOY=ENV npm run deploy
To upload static assets and deploy:
TO_DEPLOY=ENV npm run uploadanddeploy
tradenomiitti
and tradenomiitti-test
npm install
and copy assets to conf/assets/
Compile elm & scss
run compilelocal
Run the server with full integrations:
rt SEBACON_CUSTOMER=
rt SEBACON_USER=
rt SEBACON_PASSWORD=
rt SEBACON_AUTH=
rt db_user=
rt db_password=
rt environment=development
rt COMMUNICATIONS_KEY=
rt SMTP_HOST=
rt SMTP_USER=
rt SMTP_PASSWORD=
rt SMTP_TLS=
rt MAIL_FROM=
rt ENABLE_EMAIL_SENDING=true
start
Run with minimal integrations and seeded mock data.
rt DISABLE_SEBACON=true
rt db_user=
rt db_password=
rt environment=development
rt TEST_LOGIN=true
run seed-db
start
You can click “Kirjaudu” to login as Aino test user. You can also open http://localhost:3000/kirjaudu/1
or http://localhost:3000/kirjaudu/2
to use either of the two test user accounts: no SSO or members registry API required.
Run tests:
test
run testFrontend
Run the linter:
run lint
Copyright © 2017 Tradenomiliitto and others, see AUTHORS
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.