MoniCAG is a web application to be used by Centr'All Games (CAG) to manage its inventory and monitor borrowings.
Centr'All Games is a gaming club from École Centrale de Lille. All students from the school can come and play the club's games, or borrow them to play at home.
Historically, the club was managing its assets and borrowings with paperwork. More recently, the club started using a Google Form paired with a Google Sheet to declare and track borrowings.
This application aims at :
- Simplifying the borrowing process
- Creating a persistent database for the inventory
- Facilitating the club's annual audit
- Allowing every student from Centrale Lille to easily check out the available games
- Preventing bad practices when making borrowings
Just MoniCAG.
Version : MoniCAG v1.0.0 - Changelog
French README here
- Install
Composerandnpm - Create a
.envfile at the root of the project- Use the
.env.examplefile as a template - Fill it with your own settings
- Use the
- Run
composer installto installPHPdependencies - Run
npm installto installjsdependencies - Setup a local-hosted
MariaDBdatabase namedmonicag - Run
php artisan key:generateto create generate an application key (stored in.env) - Run
php artisan migrate --seedto migrate the database - Run
php artisan passport:installto migrate OAuth tables - Run
php artisan storage:linkto create the symbolic link from "public/storage" to "storage/app/public" - Run
php artisan lang:generateto generate the public translation files - Run
php artisan serveto serve the application - Run
npm run watchto bundle thejsresources - Go to
localhost:8000with a web navigator
- Setup a local-hosted
MariaDBdatabase namedmonicag_testing - Create a
.env.testingfile at the root of the project- Use the
.env.testing.examplefile as a template - Fill it with your own settings
- Use the
- Copy-paste
.env.testingand rename the copy.env.dusk.local - Run
php artisan key:generate --env=testingto create generate an application key (stored in.env.testing) - Run
php artisan key:generate --env=dusk.localto create generate an application key (stored in.env.dusk.local) - Run
php artisan migrate --seed --env=testingto migrate the testing database - Run
php artisan dusk:chrome-driverto install the latest Chrome driver for Laravel Dusk - Run
composer phpunitto perform unit tests - Run
php artisan serve --env=dusk.localandcomposer duskto perform browser tests- Don't perform unit and browser tests at the same time, they share the same database !
- Install Docker CE
- Install docker-compose
- Run
sudo docker-compose -f docker-compose.yml up --build
- May have to
chownthe root of the project for it to match the www user group. - May have to
chmod -R 775 /storage. - May have to set trusted proxies in
.envfor CSS assets and images to be accessible.
Code released under the MIT License.
Lenophie