Giter Site home page Giter Site logo

neo4reo / coopcycle-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coopcycle/coopcycle-web

0.0 3.0 0.0 5.74 MB

Open source logistics platform. Only for worker-owned business.

Home Page: https://coopcycle.org

License: Other

Makefile 0.14% PHP 64.01% HTML 13.31% CSS 4.98% Shell 0.14% Gherkin 1.74% JavaScript 15.68%

coopcycle-web's Introduction

CoopCycle

Build Status

CoopCycle is a self-hosted platform to order meals in your neighborhood and get them delivered by bike couriers. The only difference with proprietary platforms as Deliveroo or UberEats is that this software is reserved to co-ops.

The main idea is to decentralize this kind of service and to allow couriers to own the platform they are working for. In each city, couriers are encouraged to organize into co-ops, and to run their very own version of the software.

The software is under active development. If you would like to contribute we will be happy to hear from you! All instructions are in the Contribute file.

Coopcycle-web is the main repo, containing the web API, the front-end for the website and the dispatch algorithm :  Technical Overview . You can see it in action & test it here : https://demo.coopcycle.org

You can find a comprehensive list of our repos here : Our repos comprehensive list .

How to run a local instance

Prerequisites

  • Install Docker and Docker Compose.

    • On OSX : use Docker for Mac which will provide you both docker and docker-compose. It doesn't rely on Virtualbox as Docker used to.

    • On Windows : use Docker for Windows which will provide you both docker and docker-compose. It doesn't rely on Virtualbox as Docker used to.

    • On Linux : follow the instructions for your distribution. docker-compose binary is to be installed independently. You can use Coopcycle without root privileges, to do so run sudo usermod -aG docker your-user (will add you to the docker group).

  • Docker Sync : Sync between host source files and container can be painfully slow on OSX or Windows. We advise you to install docker-sync to speed up things. The command to start the platform on localhost would then be docker-sync start to start sync in the background, then docker-compose -f docker-compose.yml -f docker-compose-dev.yml up.

  • Run the install scripts.

make install

Run the application

  • Start the Docker containers
docker-compose up
  • Open the platform in your browser
open http://localhost

Testing

  • Create the test database
docker-compose run php bin/console doctrine:schema:create --env=test
  • Launch the PHPUnit tests
make phpunit
  • Launch the Behat tests
make behat
  • Launch the Mocha tests
make mocha

Running migrations

When pulling change from the remote, the database models may have changed. To apply the changes, you will need to run a database migration.

make migrations-migrate

License

The code is licensed under the Peer Production License, meaning you can use this software provided:

  • You are a worker-owned business or worker-owned collective
  • All financial gain, surplus, profits and benefits produced by the business or collective are distributed among the worker-owners

coopcycle-web's People

Contributors

alexsegura avatar atala avatar ladias-elie avatar ccoreilly avatar clementtalleu avatar fadomire avatar spone avatar vincentdcom avatar florentk avatar

Watchers

Dennis M Senyonjo avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.