A 2D spaceship game, Geoasteroids.com
- (Install Node.js)
- (Install MongoDB) (Or use a cloud service like MongoDB Atlas)
$ git clone [email protected]:jsolly/GeoAsteroids.git
$ cd GeoAsteroids
$ npm install
$ cd <mongoDB_install_dir>/bin
# Start MongoDB Server Locally (Or use a cloud service like MongoDB Atlas)
$ ./mongod --dbpath <path to data directory>
$ mongo # Or use a GUI like MongoDB Compass
$ use geoasteroids
$ db.createCollection("highscores")
# Check src/database.ts for connection string
$ vercel dev # Allows us to mock serverless functions locally
For local multiplayer development, use the following commands:
# Run all development servers (Vite + WebSocket)
npm run dev:full
# Run individual servers
npm run dev # Vite dev server (port 5173)
npm run dev:multiplayer # WebSocket server (port 3001)
npm run test
npm run lint
- Biome is now configured using
biome.jsonc
for fast, reliable linting and formatting. - The old ESLint configuration has been removed in favor of Biome's unified approach.
- To update rules or configuration, edit
biome.jsonc
.
Want to work on this with me? DM me on X @_jsolly
-
Option 1
- 🍴 Fork this repo!
-
Option 2
- 👯 Clone to your local machine using
[email protected]:jsolly/GeoAsteroids.git
- 👯 Clone to your local machine using
- HACK AWAY! 🔨🔨🔨
- 🔃 Create a new pull request using
https://github.com/jsolly/GeoAsteroids/compare
.