This project was intended first to be the gallery page of my personal website. But due to its flexibility to be an independent website or page, I made and built this poject to be easily modifieble so you can still use this as your template in building your own gallery.
If you happen to encounter some not so programmer friendly configuration upon following the below instructions, kindly send me an email at my personal email or file an issue ticket in this repo.
This project was built using below technologies:
Make sure you have installed the ff. in your local machine:
You may wish to fork this repository or remove my remote origin and add your own. Go here for more information on how to change remotes. But I highly suggest you fork this repo for monitoring.
- To download the repository and install dependencies, run the following commands:
git clone https://github.com/JCGonzaga01/gallery.git [YOUR_PREFERRED_REPO_NAME]
cd [YOUR_PREFERRED_REPO_NAME]
yarn install
- Once installed, run the following command to build the application and serve it with hot module reloading:
yarn dev
Navigate to http://localhost:3000 to view running project.
This completes the set up instructions. Please continue reading below to learn on how to modify this site to make it your own.
-
Start by changing the Logo of this site, go to
src/assets
folder then updateheaderLogo.png
to your own logo. -
Then proceed to
src/services/apiClient/gallery.ts
file. IF will use API to fetch images, declare your api url in there. ELSE IF will use local images, go tosrc/constants/_galleryList.ts_TEMP
and remove the_TEMP
in file name and declare all your local images in that file. then, go tosrc/services/apiClient/gallery.ts
file and use the predefined syntax to call to call local images -
Next, go to
src/constants
folder and update all constant information in there except_galleryList.ts_TEMP
. -
You can also change the website color theming at
src/helpers/stylings/global.scss
.
- To build the project, just run the below command.
yarn build
- If you fork this repository in your own github account and wants to deploy it in github hosting, you can just run the below command to auto deploy and host your project.
yarn deploy
Running the above command will create new git branch named gh-pages
.
To know more on how to host repo project in Github properly, kindly read this article for more information.
- Please don't forget to send love and support by giving star to this project.
- If you encounter some issues or would like to add some enhancement, never hesitate to file an issue ticket and send PR.