The JoatU application, version 2. Written in Ruby on Rails 4.2
Ruby HTML CSS CoffeeScript Other
Permalink
Failed to load latest commit information.
.ebextensions
app
bin
config
db
lib
log
public
spec
vendor/assets
.env.example
.gitignore
.rspec
.ruby-version
Dockerfile
Gemfile
Gemfile.lock
LICENCE.txt
Procfile
Procfile.local
README.md
Rakefile
config.ru

README.md

Code
Climate Build
Status

JoatU

About the Project

The Jack Of All Trade Universe is an online marketplace for self-organized exchanges. The JoatUnit is a currency that is generated to promote community activities such as planting community gardens or teaching classes. More information can be found at joatu.com

Contributing

JoatU is created and maintained by Volunteers, and we would love your help. Please feel free to check out our issues and if you fix something, send us a pull request!

Dependencies

  • Ruby 2.1.3+
  • Bundler
  • Postgres 9.3+
  • Postgis (Postgres Geo Extension) 2.1+

Setup

The following commands will get you set up to begin develpment on JoatU:

  1. Check out the code:

    • git clone https://github.com/joatuapp/joatu-v2.git
    • cd joatu-v2
    • bundle install
  2. Set up environment:

    • cp .env.example .env
    • Edit .env file as necessary. SECRET_TOKEN, SECRET_KEY_BASE, DEVISE_SECRET, and DEVISE_PEPPER should all be set with values created by running rake secret
  3. Set up the Database:

    • foreman start db (note: it will start then stay running for subsequent steps)
    • In a new terminal window, from the code path, run rake db:setup
    • In the original window, hit Ctl+C to stop the DB process.
  4. Start the app server:

  5. Create an initial admin user and log in:

    • INITIAL_ADMIN_EMAIL=test@example.com INITIAL_ADMIN_PASSWORD=foobar rake db:seed
    • Log in to JoatU using email test@example.com, password foobar.
    • Once logged in, you will have access to administration tools from within the "Manage JoatU" menu.

On subsequent runs, simply change to the app directory and run foreman start to start the app. In the terminal window while the app is running, hit Ctl+C at any point to shut down the app. The JoatU app uses a custom postgres database (stored in vendor/postgresql) and will start that database when foreman start is run. If foreman start fails and you are running postgres for other projects, please try shutting down any other instances of postgrss, and then running foreman start again.