This is the repository for my game developer portfolio website. You can fork it and use, but please keep the credits at the footer.
- Front-end:
- Vike + Vue.js (https://vuejs.org/)
- Babel (https://babeljs.io/)
- Sass (https://sass-lang.com/guide/)
- Package manager: npm (https://www.npmjs.com/)
- No Server: Doesn't need a server, any CDN hosting will do.
- SEO: All pages are pre-rendered, so the first request get the whole content.
- Performance: After the first request, it's a common single page application.
- Integrated with Github Pages
-
Clone this repository:
git clone https://github.com/hugolnx/hugolnx.github.io.git
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
This will start a local server at http://localhost:3000
-
Make code changes and watch the browser reload automatically.
-
Push to
main
. -
Check if your deploy succeeded in your Repository's Actions Page.
-
Emulate final build being served
npm run emulate
-
Force deploy (works with any branch) By default only the branch
main
is deployed on push, but with this task you can force it to deploy the current branch.npm run force-deploy
To build the production-ready version of the website, run:
npm run build
The built files will be placed in the dist
folder. You can deploy the contents of this folder to your web server.
You can verify your website on Google Search Console via metatag verification. To test that, put
your metatag token (generated by google) into .env
file as the env var VITE_GOOGLE_SITE_VERIFICATION
.
Then, when you run serve the app it should have the metatag there.
To make it work in github pages you just need to register VITE_GOOGLE_SITE_VERIFICATION
at your github repository
as a secret.
- LFS Bandwidth / Storage Limit: Avoid having useless videos and images in the repository because every deploy makes a full clone, which consumes LFS bandwidth. Github gives 1GB of LFS bandwidth per month for free, so if you have 50mb on LFS you'll be able to do 20 deploys per month.
This project is licensed under the GNU General Public License v3.0. You can find the full text of the license here.