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
- Install Node.js (v22.23.4 or newer) in your computer. The repo has a
.nvmrc, so with nvm you can just runnvm install. - Enable pnpm through Corepack:
corepack enable(if your Node.js does not ship Corepack, runnpm install -g corepackfirst). The pnpm version is pinned inpackage.json. - Have a text editor or IDE installed, like Visual Studio Code or WebStorm.
-
Clone the repository
git clone https://github.com/hackupc/hackupc-landing.git
-
Install the dependencies
pnpm install
-
Run the development server
pnpm dev
-
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)
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 lintpnpm formatThis 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-lintpnpm check-formatThe 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