- Setting up for development
- How to add your project page
- How to push your changes to the site
- Setting up the site locally for further development
- On the top right side of the GitHub repo page, click the fork option
- Doing so will take you to a new page; click
Create fork
- Go to your newly set up repo on GitHub
- Click the green drop-down button in the top right corner that says
Code
- Copy the link
- Open your terminal and cd into a path where you can easily find your files (ex. desktop)
- Once in your preferred directory, use the command
git clone (your copied link)
- You can now open your forked repository on your IDE
- Run this command in the terminal
git remote add upstream https://github.com/ellidelli/SER375ProjectsSite.git
- Run this command in the terminal
npm install
- Run this command in the terminal
npm run serve
Choose between the 3 different templates.
One Column Template | Two Column Template | Slideshow Template |
---|---|---|
![]() |
![]() |
![]() |
- If you chose the slideshow template, click here to go to the slideshow template instructions
- Navigate to
/src/projects/
. Put your project demo video in the/project_videos
folder and your image(s) in the/project_images
folder - In the
/projects
folder, create a new file. Name it your project name, no spaces, followed by .vue<YourProjectName>.vue
- Inside this same folder, you will find the sample project templates for each layout. Navigate to the one you want, copy and paste its code into your newly made file
- In this section of code:
- Enter your description
- Enter your story
- Enter your struggles and triumphs
- Add any helpful links
- You are able to add any html tags in each section. p for normal text. a for a link. h2 for headers. Whatever you want.
<template v-slot:description> <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Cumque adipisci nesciunt distinctio consectetur quisquam consequatur, corrupti reiciendis ex aut quibusdam minima quidem earum quod architecto deserunt a, commodi debitis! Ducimus.</p> </template> <template v-slot:story> <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Cumque adipisci nesciunt distinctio consectetur quisquam consequatur, corrupti reiciendis ex aut quibusdam minima quidem earum quod architecto deserunt a, commodi debitis! Ducimus.</p> </template> <template v-slot:strugglesAndTriumphs> <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Cumque adipisci nesciunt distinctio consectetur quisquam consequatur, corrupti reiciendis ex aut quibusdam minima quidem earum quod architecto deserunt a, commodi debitis! Ducimus.</p> </template> <template v-slot:links> <a href="https://www.google.com">google</a> </template>
- In this section of the code, change the import paths to your image(s) and your video. (uncomment the video import and add more imports if you have more than one photo)
import twoColumnTemplate from '../components/templates/twoColumnTemplate.vue' import sampleImage from '../projects/project_images/ProjectSampleImage.jpeg'; //import sampleVideo from '../projects/project_videos/<VIDEO TITLE>'
- In this section of code:
- Replace the name: with your project name (the same as your vue file)
- Replace all information under data() to match your project
- When it comes to multiple pictures, just add them to the array [just, like, this]
- Under the info: section, replace the title with your project name with spaces
- Add your name to the author
- Change the tags to have as little or as many as you need. Write down languages you've used, such as software, games, etc. This is to make it easier to find similar projects.
export default { name: 'TwoColumnSampleProject', components: { twoColumnTemplate }, data() { return { projectTitle: "Two Column Sample Project", author: "John Smith", pictures: [sampleImage], video: "sampleVideo" //get rid of the quotes when putting in your video variable } }, info: { title: 'Two Column Sample Project', author: 'John Smith', tags: ["Sample", "Templates", "Open Source", "Help"] } }
- Check and make sure your project page loads on the site. Check it through the search, and through the tags. If you want to add one of your screenshots into the homescreen background, click here.
Note: The slideshow height cannot be adjusted so take that into consideration when cropping your photos.
- Navigate to
/src/projects/
. Put your project demo video in the/project_videos
folder and your image(s) in the/project_images
folder - Create a new file in the
/projects
folder. Name it your project name, no spaces, followed by .vue<YourProjectName>.vue
- Inside this same folder, you will find
SlideshowSampleProject.vue
. Copy and paste its code into your newly made file. - In this section of code:
- Enter your description
- Enter your story
- Enter your struggles and triumphs
- Add any helpful links
- You are able to add any html tags in each section. p for normal text. a for a link. h2 for headers. Whatever you want.
<template v-slot:description> <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Cumque adipisci nesciunt distinctio consectetur quisquam consequatur, corrupti reiciendis ex aut quibusdam minima quidem earum quod architecto deserunt a, commodi debitis! Ducimus.</p> </template> <template v-slot:story> <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Cumque adipisci nesciunt distinctio consectetur quisquam consequatur, corrupti reiciendis ex aut quibusdam minima quidem earum quod architecto deserunt a, commodi debitis! Ducimus.</p> </template> <template v-slot:strugglesAndTriumphs> <p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Cumque adipisci nesciunt distinctio consectetur quisquam consequatur, corrupti reiciendis ex aut quibusdam minima quidem earum quod architecto deserunt a, commodi debitis! Ducimus.</p> </template> <template v-slot:links> <a href="https://www.google.com">google</a> </template>
- In this section of code:
- Update the image imports to your images
- Update the video import to your video
//import images
import one from '../projects/project_images/1.png';
import two from '../projects/project_images/2.png';
import three from '../projects/project_images/3.png';
//import video
import video from '../projects/project_videos/<YOUR VIDEO>'
- In this section of code:
- Update the name: to your project name, no spaces, and same as your vue file name.
name: 'SlideshowSampleProject',
components: {
slideshowTemplate,
VueperSlides,
VueperSlide
},
- In this section of code:
- Change all the data tags to match your project information.
- When you get to slides, add an image in the same pattern as seen below. Do it as many times as you need.
data() {
return {
projectTitle: "Slideshow Sample Project",
author: "John Smith",
video: "sampleVideo", //get rid of the quotes when putting in your video variable
slides: [
{
image: one
},
{
image: two
},
{
image: three
}
]
}
},
- In this section of code:
- Update the title of the project once again, with spaces.
- Change the author
- Change the tags to have as little or as many you need. Write down languages you've used, software, games, etc. This is to make it easier to find similar projects.
info: {
title: 'Slideshow Sample Project',
author: 'John Smith',
tags: ["Sample", "Templates", "Open Source", "Help"]
}
- Check and make sure your project page loads on the site. Check it through the search, and through the tags.
Please, before continuing, make sure the website still works, and your project page looks the way you want
- Run
git pull upstream master
- Go to the original repo’s GitHub page
- Create a pull request like normal
- When you get to the Compare changes step, you must hit compare across forks and select your forked repo and branch name
- Create your pull request
- Wait until your project is merged with the site!
- Clone the repo by typing in the terminal:
git clone https://github.com/ellidelli/SER375ProjectsSite
- Open the folder in your ide, and run these two commands
npm install
npm run serve