Git Product home page Git Product logo

hugolnx.github.io's Introduction

hugolnx.github.io

This is the repository for my game developer portfolio website. You can fork it and use, but please keep the credits at the footer.

Technologies Used

Features

  • 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

Setup

  1. Clone this repository:

    git clone https://github.com/hugolnx/hugolnx.github.io.git
  2. Install dependencies:

    npm install

Development

  1. Start the development server:

    npm run dev

    This will start a local server at http://localhost:3000

  2. Make code changes and watch the browser reload automatically.

Deploy

  1. Configure Github Pages to deploy from the branch gh-pages. screenshot

  2. Push to main.

  3. Check if your deploy succeeded in your Repository's Actions Page.

Tasks

  • 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

Build

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.

Google Search Console

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.

Issues

  • 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.

License

This project is licensed under the GNU General Public License v3.0. You can find the full text of the license here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.