-
Yassine Doghri authored
- add node service in docker-compose.yml - update .devcontainer Dockerfile by adding node, npm and vim - init package.json for npm with tailwindcss, postcss, commitlint and commitizen as dev dependencies - update default layout main header and footer - replace CI's welcome_message.php with home.php listing all podcasts - add AUTHORS.md file - add docs folder in which to place castopod's technical documentation
Yassine Doghri authored- add node service in docker-compose.yml - update .devcontainer Dockerfile by adding node, npm and vim - init package.json for npm with tailwindcss, postcss, commitlint and commitizen as dev dependencies - update default layout main header and footer - replace CI's welcome_message.php with home.php listing all podcasts - add AUTHORS.md file - add docs folder in which to place castopod's technical documentation
Setup your development environment
Table of contents
- Introduction
- Prerequisites
- Start docker containers
- Initialize and populate database
- Install/Update app dependencies
- Start hacking
- Going Further
- Developing inside a Container
Introduction
Castopod is a web app based on the php
framework CodeIgniter 4.
To setup a dev environment, we use Docker. A docker-compose.yml
and Dockerfile
are included in the project's root folder to help you kickstart your contribution.
Know that you don't need any prior knowledge of Docker to follow the next steps. However, if you wish to use your own environment, feel free to do so!
Prerequisites
-
Install docker desktop.
-
Clone castopod project by running:
git clone https://code.podlibre.org/podlibre/castopod.git
- Create a
.env
file with the minimum required config to connect the app to the database:
CI_ENVIRONMENT = development
database.default.hostname = mariadb
database.default.database = castopod
database.default.username = podlibre
database.default.password = castopod
NB. You can tweak your environment by setting more environment variables in your custom
.env
file. See theenv
for examples or the CodeIgniter4 User Guide for more info.
- Add the repository you've cloned to docker desktop's
Settings
>Resources
>File Sharing
. - Install castopod's php dependencies
The project's php dependencies aren't included in the repository, you have to download them using the composer service defined in
docker-compose.yml
docker-compose run --rm composer install --ignore-platform-reqs
- Install castopod's js dependencies
The project's js dependencies aren't included in the repository, you have to download them using the node service defined in
docker-compose.yml
docker-compose run --rm node npm install
- Build styles using postcss