- Install Composer
- Install Laravel Valet
- Clone git repo
- Run
composer install
in project root directory or from inside vagrant - Create folders named sessions, views and cache in storage/framework.
- Configure your .env (ask David)
We're using elixir, just run npm run watch
in terminal. Before deploying run npm run production
instead.
- php artisan cache:clear
- chmod -R 777 storage
- composer dump-autoload
php artisan migrate --database='phpunit' php artisan db:seed --database='phpunit'
- Create symlink to project in sites folder named
app.localfoodnodes
. - Change domain to
.org
withvalet domain org
. - Start ngrok with
./ngrok http -region=eu -hostname=app.localfoodnodes.org app.localfoodnodes.org:80
There are multiple API's in use.
Public API serves data to JS components on the site.
The private API uses passport auth
An Open API with calculated/aggregated data
Create notification "event" on "new order and new product" On cron, create notifications per user
Hur veta när en notifikaiton är skickad?
Create: when new product is created
Send: Direct
Send to: Users that follow a node
Create: when order is placed
Send: Direct
Send to: User, producer, node admin
Create: Same as order
Send: 12h before, 1h before
Send to: User with orders
Create: Dynamic
Send: 3 days before
Send to: User that follow a node