All Projects → coopcycle → Coopcycle Web

coopcycle / Coopcycle Web

Licence: other
Logistics & marketplace platform. Only for worker-owned business.

Labels

Projects that are alternatives of or similar to Coopcycle Web

Polyfill Ctype
This component provides a partial, native PHP implementation for the Ctype extension.
Stars: ✭ 3,774 (+816.02%)
Mutual labels:  symfony
Exporter
Lightweight Exporter library
Stars: ✭ 384 (-6.8%)
Mutual labels:  symfony
Symfony2extension
Symfony2 extension for Behat
Stars: ✭ 400 (-2.91%)
Mutual labels:  symfony
Explicit Architecture Php
This repository is a demo of Explicit Architecture, using the Symfony Demo Application.
Stars: ✭ 372 (-9.71%)
Mutual labels:  symfony
Certificationy Cli
The CLI tool to train certifications
Stars: ✭ 381 (-7.52%)
Mutual labels:  symfony
Twig Extra Bundle
The Twig bundle for official extra extensions
Stars: ✭ 389 (-5.58%)
Mutual labels:  symfony
Assetic Bundle
[DEPRECATED] This was the recommended way to manage web assets in Symfony 2 applications. Newer Symfony applications should use Webpack Encore.
Stars: ✭ 370 (-10.19%)
Mutual labels:  symfony
Eightpointsguzzlebundle
⛽️ Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony
Stars: ✭ 407 (-1.21%)
Mutual labels:  symfony
Foshttpcachebundle
Use the FOSHttpCache library in your Symfony projects
Stars: ✭ 383 (-7.04%)
Mutual labels:  symfony
Recipes Contrib
Symfony Contrib Recipes Repositories
Stars: ✭ 399 (-3.16%)
Mutual labels:  symfony
Symfonyextension
🎼 Extension integrating Behat with Symfony.
Stars: ✭ 376 (-8.74%)
Mutual labels:  symfony
Symfony Coding Standard
Development repository for the Symfony coding standard
Stars: ✭ 381 (-7.52%)
Mutual labels:  symfony
Dog Ceo Api
The API hosted at dog.ceo
Stars: ✭ 393 (-4.61%)
Mutual labels:  symfony
Silex
[DEPRECATED -- Use Symfony instead] The PHP micro-framework based on the Symfony Components
Stars: ✭ 3,646 (+784.95%)
Mutual labels:  symfony
Sonatadoctrineormadminbundle
Integrate Doctrine ORM into the SonataAdminBundle
Stars: ✭ 400 (-2.91%)
Mutual labels:  symfony
Graphqlite
Use PHP Annotations to declare your GraphQL API
Stars: ✭ 370 (-10.19%)
Mutual labels:  symfony
Fosckeditorbundle
Provides a CKEditor integration for your Symfony project.
Stars: ✭ 387 (-6.07%)
Mutual labels:  symfony
Doctrineenumbundle
📦 Provides support of ENUM type for Doctrine in Symfony applications.
Stars: ✭ 410 (-0.49%)
Mutual labels:  symfony
Doctrinebundle
Symfony Bundle for Doctrine ORM and DBAL
Stars: ✭ 4,225 (+925.49%)
Mutual labels:  symfony
Filesystem
The Filesystem component provides basic utilities for the filesystem.
Stars: ✭ 4,111 (+897.82%)
Mutual labels:  symfony

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.

OSX

Use Docker for Mac which will provide you both docker and docker-compose.

Windows

Use Docker for Windows which will provide you both docker and docker-compose. Depending on your platform, Docker could be installed as Native or you have to install Docker toolbox which use VirtualBox instead of Hyper-V causing a lot a differences in implementations. If you have the luck to have a CPU that supports native Docker you can share your hard disk as a virtual volume for your appliances.

Linux

Follow the instructions for your distribution. docker-compose binary is to be installed independently. Make sure:

Setup OpenStreetMap geocoders (optional)

CoopCycle uses OpenStreetMap to geocode addresses and provide autocomplete features.

Address autocomplete

To configure address autocomplete, choose a provider below, grab the credentials, and configure environment variables accordingly.

ALGOLIA_PLACES_APP_ID
ALGOLIA_PLACES_API_KEY
LOCATIONIQ_ACCESS_TOKEN
GEOCODE_EARTH_API_KEY
  • For Algolia Places, set COOPCYCLE_AUTOCOMPLETE_ADAPTER=algolia
  • For Geocode Earth, set COOPCYCLE_AUTOCOMPLETE_ADAPTER=geocode-earth
  • For LocationIQ, set COOPCYCLE_AUTOCOMPLETE_ADAPTER=locationiq
Geocoding

To configure geocoding, create an account on OpenCage, and configure the OPENCAGE_API_KEY environement variable.

Run the application

Pull the Docker containers (optional)

We have prebuilt some images and uploaded them to Docker Hub. To avoid building those images locally, you can pull them first.

docker-compose pull

Start the Docker containers

docker-compose up

At this step, the platform should be up & running, but the database is still empty. To create the schema & initialize the platform with demo data, run:

make install

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

Debugging

1. Install and enable xdebug in the php container

make enable-xdebug

Note: If you've been working with this stack before you'll need to rebuild the php image for this command to work:

docker-compose build php
docker-compose restart php nginx

2. Enable php debug in VSCode

  1. Install a PHP Debug extension, this is tested with felixfbecker.php-debug extension.
  2. Add the following configuration in your .vscode/launch.json of your workspace:
{
	"configurations": [
    {
      "name": "Listen for XDebug",
      "type": "php",
      "request": "launch",
      "port": 9001,
      "pathMappings": {
          "/var/www/html": "${workspaceFolder}"
      },
      "xdebugSettings": {
          "max_data": 65535,
          "show_hidden": 1,
          "max_children": 100,
          "max_depth": 5
      }
    }
  ]
}
  1. If you're having issues connecting the debugger yo can restart nginx and php containers to reload the xdebug extension.
docker-compose restart php nginx

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 Coopyleft License, meaning you can use this software provided:

  • You are matching with the social and common company’s criteria as define by their national law, or by the European Commission in its October 25th, 2011 communication, or by default by the Article 1 of the French law n°2014-856 of July 31st, 2014 “relative à l’économie sociale et solidaire”
  • You are using a cooperative model in which workers are employees
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].