Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.79 KB

README.md

File metadata and controls

56 lines (40 loc) · 1.79 KB

Rivet Site

rivet.gg

Project structure

game/             Demo game used on the landing page. This can be deployed via the Rivet CLI in game/server/.
public/           Static assets
  fonts/
  icons/          Favicons
  promo/          Assets used for promotional marketing
scripts/
src/
  authors/
  components/     Reusable components
  generated/      Content generated from the rivet-gg/rivet repo with scripts/generate*.js
  lib/            Helper libraries used at build time
  mdx/            "
  pages/          MDX & JSX content to serve as pages
  styles/         Static stylesheets (seldom used)
_redirects        https://developers.cloudflare.com/pages/platform/redirects/

Developing

  1. To get started make sure that you have Modules repository cloned in the parent folder under modules directory
  .
  |> modules (https://github.com/rivet-gg/modules)
  |> site (this repository)

then install the npm dependencies:

yarn install
yarn run start

Open http://localhost:3000 in your browser to view the website.

Running landing game locally

The landing page includes a Rivet game on it. The source code for the game client & server is in game/.

To configure the Rivet token, set the NEXT_PUBLIC_RIVET_TOKEN and NEXT_PUBLIC_API_ENDPIONT environment variables. By default, this will be disabled in development.

To test the game locally, run cd game && rivet run server, then pass a development token to NEXT_PUBLIC_RIVET_TOKEN.

To deploy the game, run cd game && rivet deploy -n prod then pass a public token to NEXT_PUBLIC_RIVET_TOKEN.

License

This site template is a commercial product and is licensed under the Tailwind UI license.