This project is built using Laravel/Blade/Tailwind CSS. Please follow the instructions below to set up and run it on your local machine.
Before you clone the repository, ensure you have the following software installed on your machine.
- PHP
- PHP Composer
- Node.js (comes with npm)
- SQLite
Ensure you have SQLite installed as this project uses SQLite instead of MySQL for easier setup and minimal configuration.
git clone git@github.com:mscraftsman/devfest2023.git- Install all necessary PHP dependencies.
composer install- Install all necessary Node.js dependencies.
npm install- Copy the
.env.examplefile provided by laravel to.envin the project root. This file contains application settings, including database connection settings.
cp .env.example .env- Generate a unique application key using the artisan command-line tool provided by laravel.
php artisan key:generate- Create a new SQLite database file in the
storagedirectory of the project (if it doesn't exist).
mkdir storage/database
touch storage/database/database.sqlite- Update the
.envfile in the project root to use the SQLite database by setting the DB_CONNECTION variable.
DB_CONNECTION=sqlite
DB_DATABASE=absolute/path/to/devfest2023/storage/database/database.sqliteReplace absolute/path/to/devfest2023 with the correct path to your database directory.
- Run the database migrations to create the necessary tables in the database.
php artisan migrateThis project utilizes the Serionize API to retrieve data concerning the event's agenda and its speakers. It involves programmatically accessing the API, likely with tools such as curl, to request the necessary data. Once retrieved, the data must be stored locally within the application's storage/database directory, specifically under the filenames agenda.json and speakers.json.
Compile the assets using the npm command-line tool.
npm run devOr, for production:
npm run build- Run the application using the artisan command-line tool provided by laravel.
php artisan serve- Open the application in your browser by visiting the URL provided
http://localhost:8000by the artisan command-line tool.