Skip to content
Order database
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
src
tests/AppBundle/Controller
var
web
.gitignore
README.md
composer.json
composer.lock
docker-compose.yml
phpunit.xml.dist

README.md

justorderit

Description

A product database where you can order a product and use a cronjob to send an email with the orders to process.

Not ready for prime time. Use at your own risk.

justorderit

Installation

Create MySQL database and a user

mysql -uroot -p
MySQL> create datbase justorderit;
MySQL> grant usage on *.* to justorderit@localhost identified by 'YOUR_PASSWORD';
# remove the \ before the * it's just here to prevent bad syntax highlighting
MySQL> grant all privileges on justorderit.\* to justorderit@localhost;
MySQL> exit;
git clone https://github.com/NicolasCARPi/justorderit/
# install composer (not shown)
# install php dependencies
php composer.phar install --no-dev
# mysql structure
php bin/console doctrine:schema:update --force
# fix permissions
sudo chown -R www-data:www-data var/cache var/logs var/sessions
mkdir -p web/uploads/quotes
sudo chown -R www-data:www-data web/uploads

Setting up the cronjob

curl https://justorderit/cron

Dev

Starting the dev server:

php bin/console server:run

Clearing the cache on the prod server after an update:

rm -rf var/cache/prod/
You can’t perform that action at this time.