-
On Github: https://github.com/jclauneurolab/aims-website fork a repo by selecting the 'Fork' button

-
Clone the fork you created with
git clone https://github.com/{your-git-username}/aims-website.git -
Open up the cloned repo using your favourite IDE. If you have VSCode configured on your system, enter:
code aims-website
-
Navigate to the
datafolder and open the.jsonfile of the page you want to add content to. -
Using the same formatting as within the rest of the
.jsonfile, add your content to the top of the sheet and save the file. A list of the content needed for each section is listed below.For the images, navigate to the
publicfolder, and add the image into the respective folders for the page.
{
"title": "title",
"link": "link to news", // optional
"date": "2025-01-01",
"subheading": "short description of the news", // around a one sentence summary
"content": "long description of the news",
"img": "./news-images/test-image.png" // replace 'test-image.png' with the name of your image
} {
"title": "title",
"link": "link to paper",
"date": "2025-01-01",
"authors": "Lau et al., 2024",
"img": "./paper-images/ijcars.png" //image of the published jounal - optional
}, {
"active": true, //set active to false if an alumni
"name": "name",
"position": "Undergraduate student, etc.",
"department": "department",
"supervisor": "co-supervised by...",
"img": "./people-images/your-image.png",
"socialLinks": { //any of the social links are optional, if you do not have an account delete it from this section
"linkedin": "link",
"github": "link",
"email": "mailto:your email",
"orcid": "",
"google_scholar": "",
"twitterx": "",
},
"bio": ""
} {
"title": "Test Project",
"authors": "test author",
"paper": "Test project link", //optional
"github": "Test project github", //optional
"subheading": "short description of the project", // around a one sentence summary
"content": "long description of the project",
"img": "./project-images/test-image.png"
},- Once you are finished adding content, make sure you've saved all the files.
- In the terminal, enter
git statusto see which files you’ve updated. - Add the files to your commit using
git add <file names>. For example,git add people-page.jsx. To add everthing at once, rungit add .. - Commit the changes with
git commit -m "enter a commit message here". For example,git commit -m "added my profile". - Push the new changes to GitHub using
git push -u origin main.
- Navigate to your forked repo on GitHub.
- Go to the Pull Requests tab and click New Pull Request.
- Click Create Pull Request. Add an appropriate title and description, and click on Create Pull Request once finished.
- A website developer will check over the pull request and merge it into the site.
- That's it!
- Clone the repository with
git clone https://github.com/jclauneurolab/aims-website.git. - Use Node.js LTS version with
nvm use --lts, which sets Node v22.14.0 and npm v10.9.2. - Install the required dependencies with
npm install. - start the development server using
npm run dev.