This forked repository serves as a stash for storing the requested updates and follow-up fixes for the original website on https://ciat-dapa.github.io/pakistan_web/.
Production Site is available on https://ciatph.github.io/alliance-csa-pakistan
Test Site is available on https://pakistan-web-dev.web.app
- NodeJS v12.16.6
- v12.16.6 was used for this project but feel free to use other versions
- Clone this repository.
git clone https://github.com/ciatph/alliance-csa-pakistan.git
- Install dependencies.
cd alliance-csa-pakistan npm install
- Run the localhost development web server.
npm run dev
- Edit any of the
.html
,.css
or.js
files inside the /public directory and observe the changes when browser reloads itself. - If you'll need to add new
html/css/js
files, first stop the localhost web server, add new the files and re-run it again.- (windows cmd) stop the web server.
Ctrl + C
- add new
html/css/js
files in the /public directory. - Restart the localhost web server.
npm run dev
- (windows cmd) stop the web server.
- Branch out (create a new branch) from the latest
dev
branch.git fetch git checkout dev git reset --hard origin dev git checkout -b <your_branch_name>
- Follow the notes on on the Usage section to update or apply fixes on the new branch.
Read on the following Production and Development sections for additional information.
- (Development) Create a pull request (PR) from your
<your_branch_name>
to the dev branch. Read on the Updating section for more information on how to create a new branch.- Create a PR where source branch:
<your_branch_name>
(i.e.,my-updates
), and target branch: dev - Approve the PR.
- Create a PR where source branch:
- (Production) Create a pull request (PR) from the dev branch to the master branch.
- Create a PR where source branch:
dev
, and target branch:master
. - Approve the PR.
- Create a PR where source branch:
- Only accept PRs originating from the dev branch.
- Pushed/merged updates on the
master
branch will trigger a GitHub workflows CI/CD to the gh-pages branch. Updates will be viewable on https://ciatph.github.io/alliance-csa-pakistan after the deployment has finished. - Alternatively, static files from the
/public
directory can also be hosted on any web server that can serve HTML, CSS, JavaScript and CSV files.
- Prerequisites: a new branch containing updates and fixes must have beeen created first before proceeding. (See Deployment - Steps #1 (Development) section for more information).
- Accept PRs originating from other branches (i.e.,
my-updates
) into the dev branch. - Pushed/merged updates on the
dev
branch will trigger a GitHub workflows CI/CD to firebase hosting. Updates will be viewable on https://pakistan-web-dev.web.app after the deployment has finished.
Many thanks to the CIAT team for their research, and @stevensotelo for creating the original website and laying out an excellent and well-thought of static website groundwork on pakistan_web. The original website is available on https://ciat-dapa.github.io/pakistan_web/.
@ciatph
20210726