This repository contains the source code for the Techmino Hub website.
This website is built using Nuxt.js, unlike the previous iteration, which used plain HTML, CSS, and JS.
See our repository's wiki for information on contributing to this project.
If you trust the workspace on Visual Studio Code, bun run dev
will automatically be executed when you open the workspace. This is so that you don't have to turn on the development server manually. By default, it starts the development server on http://localhost:3000
.
If you want to disable this, press Ctrl + Shift + P
and type "Tasks: Manage Automatic Tasks", then disable automatic tasks.
- Set up your Supabase project using the database specs on
./assets/types/database.ts
. - Optional: use triggers and RLS to enforce the database schema.
- In Project Settings -> API, get your project URL and anonymous key.
- Create an
.env
file in the root directory of the project with the following content:
SUPABASE_URL = (your Supabase URL)
SUPABASE_ANON_KEY = (your Supabase anonymous key)
- If you haven't already, install npm or any alternatives. (I personally use Bun for its unparalleled speed, but you can use whatever you want.)
- Clone this repository. Or click the green "Code" button and download the ZIP file.
If you want to deploy this using Vercel like I am, you should integrate your Supabase project with Vercel so that the environment variables are accessible: In your Supabase project, go to Settings -> Integrations. It should have a "Vercel Integration" section. The rest should be straightforward.
Make sure to install the dependencies:
# if you use npm:
npm install
# if you use pnpm:
pnpm install
# if you use yarn:
yarn install
# if you use bun:
bun install
Start the development server on http://localhost:3000
:
# if you use npm:
npm run dev
# if you use pnpm:
pnpm run dev
# if you use yarn:
yarn dev
# if you use bun:
bun run dev
Locally preview production build:
# if you use npm:
npm run preview
# if you use pnpm:
pnpm run preview
# if you use yarn:
yarn preview
# if you use bun:
bun run preview
See more: Nuxt.js deployment docs