mykongee / polyhaven.com

Source code for the polyhaven.com site

Home Page:polyhaven-com-polyhaven.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Poly Haven Website Source

This repo contains source code for the polyhaven.com site.

Poly Haven is a public project, we'd be happy to review any code contributions :)

If you want to help but are unsure what to do, here's a list of things that need doing.

Building

The site is a hybrid SPA built with Next.js.

To build the application yourself, you'll need to:

  1. Install Node
  2. Clone this repo
  3. Run npm install
  4. Then npm run dev will start a local server at http://localhost:3002/ - or use next dev -p 3002 to specify a different port.

API

This application works in tandem with our API.

By default it uses the public https://api.polyhaven.com base URL, but if you need to override this you can set an environment variable NEXT_PUBLIC_API_URL="http://localhost:3000".

However, unless you set up your own Firestore database that mimicks ours, you likely don't want to run a local API and should just use the default live one instead.

Get Help

Need help building the site? The best way to get in touch is on Discord: https://discord.gg/Dms7Mrs

Otherwise you're welcome to create an issue, email us, whatever :)


Powered by vercel

Vercel sponsors the hosting of polyhaven.com's front-end.

About

Source code for the polyhaven.com site

polyhaven-com-polyhaven.vercel.app

License:GNU Affero General Public License v3.0


Languages

Language:TypeScript 75.2%Language:SCSS 17.9%Language:JavaScript 6.9%