Skip to content

Technical Setup

Georg Wild edited this page Jan 31, 2018 · 4 revisions

We'd be so happy if you use this!

The Task Auction makes our life a lot easier. We'd love to hear of other people using for whatever purposes and help you make your chore assignment a little easier, too! If any aspect of this seems daunting, please do not hesitate to contact us! Easiest would be by right here on github, or you can email us via our house project site:

Warning

Prototype! This software is mostly a hacked together proof of concept. There have been no quality standards, no tests, no security, no documentation, no coherent plan or architecture, minimal maintainability. Yet it has already proven useful and is released here for whoever finds it interesting. Once the system itself evolves, a more efficient, secure, robust and maintainable rebuild is in order.

Set-Up

Requirements

  • nodejs & npm
  • http server with php
  • mysql server

Development Setup

# install node env
$ sudo npm install -g ionic cordova 
$ cd path/to/your/cloned/taskauction
$ npm install

# create database and credentials file
# create a mysql database and import setup-db.sql
$ cd backend
$ cp db-sample.conf.php db.conf.php
$ nano db.conf.php # put in your db credentials

# provide the path of slingshot.php on your server
$ cd ../src/providers/config
$ cp config-sample.ts config.ts
$ nano config.ts # adjust backend URL

# the framework does everything else for you
$ ionic serve

Everything frontend lives in src/. Backend consists of only 1 file: backend/slingshot.php

Building for production

# to optimize, minify and whatnot:
$ ionic build --prod
# cross your fingers and hope for the best. Good luck!
# results will be in www/

To build for Android, IOS etc. check the ionic docs. You will also need numerous other things installed on your system for that. The error messages are usually helpful if something is missing. That being said, there is not much of an advantage of a native app in this case.

Clone this wiki locally