version 0.1.0
- Install Docker
- Clone repository
git clone [email protected]:Wikimedia-TW/wiki-awareness-backend.git
- Install required packages
cd wiki-awareness-backend
docker run --rm -v $(pwd):/app composer install
- Change file owner to current user
sudo chown -R $USER:$USER ~/wiki-awareness-backend
- Config .env and set up GCP project credential file
mv .env.example .env
mkdir service
mv g0v-wiki-awareness-e81bff7c6201.json ~/wiki-awareness-backend/service/.
docker-compose up -d
docker-compose exec app php artisan migrate:install
Note. Only need to be executed at the first time.
docker-compose exec app php artisan migrate
Note. Only need to be executed once for every version.
docker-compose down
- Creating a report
- Connecting reports to Google sheets
POST localhost/api/reports
key | validation |
---|---|
fingerprint | string | required | 255 |
url | string | required | 255 |
highlighted | string | required | 255 |
description | string | 255 |
type | string | required | 12 |
Status 201
GET localhost/api/reports