Skip to content

About

🚀 HackUPC's landing page

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

HackUPC Landing Page

pnpm 12.21.0 Node.js 22.23.4 Netlify Status

Welcome to HackUPC's landing page source code, made in Next.js.

This repository is live since the 10th edition of HackUPC in 2024, you can see the old releases in Old repository

How to set up the project

Prerequisites

  • Install Node.js (v22.23.4 or newer) in your computer. The repo has a .nvmrc, so with nvm you can just run nvm install.
  • Enable pnpm through Corepack: corepack enable (if your Node.js does not ship Corepack, run npm install -g corepack first). The pnpm version is pinned in package.json.
  • Have a text editor or IDE installed, like Visual Studio Code or WebStorm.

Installation

  1. Clone the repository

     git clone https://github.com/hackupc/hackupc-landing.git
  2. Install the dependencies

    pnpm install

Run the project for development

  1. Run the development server

    pnpm dev
  2. Open http://localhost:3000 with your browser to see the result.

The page auto-updates as you edit the file. If it's not working maybe you need to check your configurations, it's for sure working in Chrome (mac and windows) and mozilla (linux)

Linting and formatting

We are using eslint and prettier to lint and format the code, you can run the following commands to check if the code is correctly formatted and linted:

pnpm lint
pnpm format

This commands will make changes in your code, if you simply want to check if the code is correctly formatted and linted, you can run the following commands:

pnpm check-lint
pnpm check-format

Deployment

The app is being deployed in Netlify, the deployment is automatic when a new commit is pushed to the master branch. But it's generating previews for every pull request, so you can see the changes before merging.

The site is built as a static export (output: "export" in next.config.js): pnpm build generates plain HTML/CSS/JS in the out/ folder, which is what Netlify publishes. No Next.js server runs in production, so server-only features (API routes, Server Actions, middleware, image optimization, etc.) are not available.

To preview the production build locally:

pnpm build
pnpm start

About

🚀 HackUPC's landing page

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages