fdo-labs / nachbarschaftsmarktplatz

Other
0 stars 2 forks source link

https://github.com/jakobkolb/nachbarschaftsmarktplatz/blob/develop/doc/NMP_Logo_Black_Wide.png

= Welcome to the Nachbarschaftsmarktplatz repository

{Build Status}[https://travis-ci.org/fairmondo/fairmondo] {Coverage Status}[https://coveralls.io/r/fairmondo/fairmondo?branch=develop] {}[https://codeclimate.com/github/fairmondo/fairmondo] {Dependency Status}[https://gemnasium.com/fairmondo/fairmondo] {Inline docs}[http://inch-ci.org/github/fairmondo/fairmondo]

Nachbarschaftsmarktplatz is a free market place and delivery solution in the hand of the users that helps local retailers to survive the COVID-19 crisis and beyond.

Read more about it at: http://nachbarschaftsmarktplatz.de

Please help us out by contributing code.

== Getting started

=== Installing Ruby and Ruby on Rails

If you are not sure how to install Ruby and the Ruby on Rails framework on your computer, have a look at Michael Hartl's excellent {tutorial}[http://rails-4-0.railstutorial.org/book/beginning#sec-rubygems] on the subject.

Make sure you install 2.2.2. and not ruby 1.9.3-p392.

=== Nachbarschaftsmarktplatz Project Setup

=== Known Issues

=== Testing

To run the tests, type

rake test

NOTE: The tests need elasticsearch to run through (see below)

If you update your branch from before, you may have to migrate the test database:

RAILS_ENV=test rake db:migrate

{Click here}[https://github.com/fairmondo/fairmondo/wiki/Testing-and-BDD] to read more about testing in our wiki.

The testsuite offers an option to stop at the first failing test and rescue in a pry console. To activate this use:

RESCUE=1 rake test

We also have some more tests built in:

=== Workflow

If you want to help out with programming new features or fixing bugs, please consider the following guidelines:

Hint: When a vim window opened after you typed "git commit" without a commit message, you can save the default message by simply typing ":wq" and pressing enter.

=== Run Elasticsearch Server

To make the search available in your local environment you have to install Elasticsearch:

curl -k -L -o elasticsearch.tar.gz https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.0.tar.gz
tar -zxvf elasticsearch.tar.gz
./elasticsearch-5.4.0/bin/elasticsearch-plugin install http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-plugin-bundle/5.4.0.0/elasticsearch-plugin-bundle-5.4.0.0-plugin.zip
./elasticsearch-5.4.0/bin/elasticsearch

Links for Elasticsearch: http://www.elasticsearch.org

Plugin we use: https://github.com/jprante/elasticsearch-plugin-bundle

=== Background Processing with sidekiq To use our Background processing you have to setup a redis instance locally:

On Ubuntu/Debian: sudo apt-get install redis-server

For other systems try http://redis.io/

Aftwerwards start sidekiq with:

sidekiq -C config/sidekiq.yml

== Contributing

Share the idea, take part at http://nachbarschaftsmarktplatz.de/ and help your local retailers in these dire times!

Regarding the source, there are two ways to contribute.

  1. Report a bug?

    • Just use the github issue tracker.
    • Please tag added bugs with the "bugs" tag
  2. Want to help out and join feature development?

    • Have a look at our issue list and work on whatever you like. Mainly look at [Milestone] Backlog [Label] free4all
    • Send us an email at {nachbarschaftsmarktplatz@posteo.de}[mailto:nachbarschaftsmarktplatz@posteo.de] or join the {Dev channel on Telegram}[https://t.me/joinchat/EgdxwUweR3pod2KODs3MSg] and work with us to make the world a better place
    • or make a github account and click on the button called "Fork" in the upper right corner of {our repository}[https://github.com/fdo-labs/nachbarschaftsmarktplatz]. Then code a few cool features, commit and push your changes, and submit a "Pull Request" so we can implement your work.