rchovatiya88 / CS1-Meta-Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CS1 Logo

CS1 Engine Community Edition


Staging

Prod

Desired Features

  • WebXR
  • PWA
  • Reactive State Management
  • Realtime Multiuser
  • Auth

Building the CS1 Engine Locally

From the terminal execute: npm run engine

Building a CS1 App Locally

From the terminal execute: npm run app

Building the CS1 Engine On Glitch

From the terminal execute: pnpm run engine-glitch

Building a CS1 App On Glitch

From the terminal execute: pnpm run app-glitch


Run Your App Locally on Chrome

Enable this flag:

chrome://flags/#allow-insecure-localhost

Then:

From the terminal execute: npm run start

Then go to: https://localhost:8443


Publishing to NPM

Use the following pattern to publish any npm package from Glitch

If you wish to create your own modified version of the CS1 Game Server:

  • Create an npm account
  • Create an npm token
  • Record your npm token in .env.
  • Create a .npmrc file in the src/server directory with the following line:
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
  • Configure the package.json in the src/server directory according to your details
  • Make sure to set a unique version before publishing package to npm.
  • Open a Terminal and run cd src/server
  • In the Terminal run npm publish

About


Languages

Language:JavaScript 99.7%Language:TypeScript 0.2%Language:HTML 0.0%