Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rodnye/space-game
https://github.com/rodnye/space-game
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rodnye/space-game
- Owner: rodnye
- Created: 2023-10-18T06:33:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-14T18:14:09.000Z (about 1 year ago)
- Last Synced: 2024-11-24T20:46:44.119Z (3 months ago)
- Language: JavaScript
- Size: 5.26 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Space Game 👨🚀
🚀🔥 You can play [here](https://acortar.link/wWWosb)
Space ship war game and space colonization. It is currently in the development phase.
## Setup ⚙️
1. Clone the repository:
```bash
git clone https://github.com/RodnyE/space-game.git
```2. Rename the `buildDependencies` property in `package.json` to `devDependencies`.
3. Install the dependencies:
```bash
npm install
```4. Start the development server:
```bash
npm test
```## Structure 📂
The project structure is as follows:
- `src/`: Contains the frontend React code.
- `serv/`: Contains the backend NodeJS code.
- `public/`: Contains the static files served by Express.
- `dist/`: Contains the bundled files generated by Webpack.## Development 💠
To start the development server:
```bash
npm test
```This command will run both the backend server and the frontend development build using Webpack. Any changes made in the code will automatically trigger a rebuild.
## Production 🚀
To build the project for production:
```bash
npm run build
```This command will generate the optimized production build in the `dist/` directory.
To start the production server:
```bash
npm start
```Make sure to set the appropriate environment variables in a `.env` file or in your hosting environment.
## Contributing 🤝
Feel free to contribute to this project by creating issues or submitting pull requests. Your contributions are highly appreciated.