No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
client
public
server
.bowerrc
.gitignore
Gruntfile.js
Procfile
README.md
bower.json
package.json
project.clj

README.md

Count Me In

We believe in the importance of pursuing a passion or hobby, but also recognize that the process of staying committed may be difficult to accomplish alone. Count Me In facilitates this process by finding like-minded people to help you along the way.

Count Me In provides a community-based accountability system for people who want to start a new hobby, learn a new skill, or improve upon an existing hobby/skill.

Count Me In motivates users to learn a new hobby or skill with a personalized newsfeed of pledges. Pledges are communities of users who commit to common goals and maintain accountability by sharing their progress. Pledge members share image-based posts to show their improvement over time. With Count Me In, users can subscribe to pledges and follow their friends to keep track of their progress and stay inspired. The social networking aspect of Count Me In helps users hold themselves accountable.

Initial global setup

npm install -g karma-cli
npm install -g grunt-cli
brew install neo4j
brew install leiningen

After pulling run:

npm install bower install

Neo4j database

Start the database with:

neo4j start

You may need to install Java to run neo4j. This will depend on your local machine and whether you already have Java installed. neo4j requires Java so if you have not already downloaded Java onto your local machine see the above link for instructions on downloading Java. You can interact with the database through its web interface by navigating to localhost:7474. If it asks for a username and password use neo4j for both (you may need to change your password twice to get it back to neo4j). When you're done, stop the database with:

neo4j stop

Grunt tasks

To build and test JS files, and start watching for changes to continue doing so, use:

grunt dev

To start up the server with nodemon, which restarts every time you make a change to a file, use:

grunt serve

To compile the auth clojure files, use:

grunt cljs

Config files

AmazonS3

To allow post image/video uploads to store on on AmazonS3, add the S3 credentials as a config file to server/db/adapter/amazonS3Config.js. The config file should use this structure:

module.exports = {
  AWS_ACCESS_KEY: 'XXX-needs-amazon-key-XXX',
  AWS_SECRET_KEY: 'XXX-needs-amazon-secret-key-XXX',
  S3_BUCKET: 'XXX-needs-amazon-bucket-XXX'
};

The AWS credentials are available on this Google Doc.

Auth

For session tokens, create server/auth/jwtConfig.js. The file structure:

module.exports = { key: '', expiresInMinutes: 1440, issuer: '' };

The credentials are available at this doc.

Dummy data

Run get requests to the following URLs:

/api/test/clear
/api/test/fill