Split a bill, share a meal. Try it out at piecemeal.us.
Piecemeal is live! You can try it out at at piecemeal.us.
- Node 4.2.x
- PostgreSQL 9.1.x
sudo npm install -g bower
npm install
bower install
- Install Postgres.app - full-featured PostgreSQL installation w/
psql
CLI - Install Postico (optional) - PostgreSQL Client for OSX aka GUI. Double check that Postgres.app is running from your OSX toolbar. It should indicate that you are running port 5432.
- Use Postgres CLI to create the database:
psql
CREATE USER admin WITH SUPERUSER;
ALTER USER admin WITH PASSWORD 'admin';
SET ROLE admin;
CREATE DATABASE piecemeal;
a. Starting using Grunt (recommended):
The Gruntfile has been setup so that starting up the application for dev purposes is as painless as possible.
grunt init
grunt start
This will start up the database, start the server, set up livereload and grunt watch
to lint, run tests and create documentation as you change the files. See the Gruntfile for more information on setup.
b. Or with a simple node command:
node server/server.js
There is a file called 'venmoApiKeysFILL-IN.js' in the root folder. Add your developer keys from Venmo and rename it 'venmoApiKeys.js'.
Most problems can be solved by dropping the database. To clear it, stop the server and run:
psql
drop database piecemeal;
create database piecemeal;
We used Jasmine and Karma to test our Angular components, and used ngMock and angular.mock.inject. Check our Karma config file for more details.
To run the tests, just run:
karma start karma.conf.js
See ROADMAP.md for more information.
- Why is everything in an IIFE in the client-side Angular files?
We follow John Papa's Angular Style Guide, a comprehensive guide on syntax and structure of Angular components for greater readability and clarity.
See CONTRIBUTING.md for contribution guidelines.