-
Notifications
You must be signed in to change notification settings - Fork 4
How to Contribute
Max Kohler edited this page Jul 26, 2023
·
2 revisions
You only need to do these steps once. If you've never worked in a version-controlled environment you might want to read Version Control at PRIF before you continue.
You need the following tools to work on this repository:
- Visual Studio Code (latest stable)
- Node.js + npm (18 LTS)
- git (latest)
- Github Desktop (latest)
Forward this list to IT and have them install everything on it on your machine before you continue. All of this software is open-source and requires no licensing.
- Sign up for a free Github account using your work email and let an admin know what your username is, so they can add you to our organisation. You must enable two-factor authentication to join our organisation.
- Once you’ve accepted your invitation, run
git clone https://github.com/Peace-Research-Institute-Frankfurt/websites.git
to make a local copy of this repository - Open the command line, navigate to the newly-created folder and run
npm install
to download and install all necessary dependencies (this might take a few minutes).
- Open your project's subfolder (like
/new-work
) in Visual Studio Code - Run
npm run start
in the built-in command line to start a live preview atlocalhost:8000
. - Make your changes
- Use the command line or the version control panel in Visual Studio Code to
commit
andpush
your changes to the repository. Your changes should be automatically deployed in about 60 seconds. The deployment status section at the top of this page shows your project's deployment status in real time.