This guide is intended for developers who want to set up a local development environment for the GovCMS project on GitHub. The following instructions will guide you through the process of setting up a local environment, including installing and configuring necessary software and dependencies.
Before you can start setting up your local development environment for GovCMS, you must have the following software installed on your machine:
- Git
- Composer
- Docker (Optional)
- Docker Compose (Optional)
If you do not have any of these software installed, please follow the instructions provided by the software provider to install them.
- Via Composer
- Via Docker Compose
Follow the below steps to set up your local development environment for GovCMS:
-
Clone the GovCMS project from GitHub by running the following command:
git clone -b 3.x-develop [email protected]:GovCMS/GovCMS.git
-
Navigate to the cloned project directory:
cd govcms
-
Install project dependencies using Composer:
composer update
-
Clone the GovCMS project from GitHub by running the following command:
git clone -b 3.x-develop [email protected]:GovCMS/GovCMS.git
-
Navigate to the cloned project directory:
cd govcms
-
Copy the auth.json.example file to auth.json (for Composer and GitHub API rate limit ):
cd .docker cp auth.json.example auth.json vi auth.json
-
Start the Docker containers by running the following command:
cd govcms docker compose up -d
-
The website should now be running at http://localhost:8888. You can access the website by opening this URL in your browser.
TBD
We welcome contributions from the community. To contribute, please follow the below steps:
- Fork the GovCMS project repository from GitHub.
- Clone your forked repository to your local machine.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them to your local branch.
- Push your changes to your forked repository on GitHub.
- Submit a pull request to the main GovCMS repository.
That's it! You now have a fully-functional local development environment for the GovCMS project. Happy coding!