This project is an Backend/API written in Laravel to manage/request arbitrary resources. A resource consists of a few attributes, and can be managed by administrators of a configured Discord server.
The API endpoints to get resources are public, while adding and managing of resources are for admins only. The production server runs on a PHP-Apache container to keep it lightweight. File uploading is supported with S3-compatible storage or local.
The docker-compose.yml
file is for development purposes, it sets up the database and a container called "development" with NPM and Composer installed for your dependencies.
- Build dev containers locally using
docker-compose build
. - Run the containers using
docker-compose up -d
. - Copy
.env.example
to.env
, the default values will suffice but you will need a Discord Application to authenticate with. - To set up the database, create a database called
laravel
on your dev SQL database using adminer at http://localhost:8080 - To install dependencies, run
docker exec -it development sh
to open a shell into the dev container and run the following:composer install
npm install
npm run dev
- Run
php artisan migrate
in the development container to run migrations.