This repository contains the main project files used for the implementation of a "CS 195 Portal". This project is being developed for the accomplishment of the CS 191/CS 192 subject of the University of the Philippines - Diliman.
To get started, first clone the repository to your local device:
# Via ssh
git clone git@github.com:ehrelevant/cs195-portal.git
# Via https
git clone https://github.com/ehrelevant/cs195-portal.gitImportant
For the succeeding steps, it is assumed that you are using a Linux environment (i.e. Virtual Machine, Windows Subsystem for Linux) to develop the application.
To run the project locally, the following tools are required:
Tip
If you are using a Linux environment, you can use the following convenience script from the Laravel website to quickly install php and composer.
To install the frontend dependencies of the application, run:
# Install frontend project dependencies
pnpm installTo install the backend dependencies, run the following:
# Install backend project dependencies
composer install --ignore-platform-reqsAfter installing all the dependencies, you may run the application with the following command:
composer run devThe application will then be available at http://localhost:8000/.
Before pushing or submitting a pull request to the repository, be sure to run the formatters and linters. This is done to ensure that the codebase remains clean and consistent.
# Fix frontend code formatting with Prettier.
pnpm fmt
# Checks code with Prettier & ESLint.
pnpm lint
# Fix backend code formatting with PHP-CS-Fixer.
composer fmt
# Checks code with PHP-CS-Fixer.
composer lint