krgamestudios / MERN-template

A website template using the MERN stack. It is geared towards Persistent Browser Based Games (think neopets), but is flexible enough for a number of different uses.
zlib License
68 stars 9 forks source link
docker expressjs game-development game-engine gamedev mern-stack nodejs pbbg reactjs sequelizejs

MERN-template

A website template using the MERN stack. It is geared towards Persistent Browser Based Games (think neopets), but is flexible enough for a number of different uses.

The primary technology involved is:

This template is designed to support the development of persistent browser based games (PBBGs), but it, and it's component microservices, can be used elsewhere.

This template is released under the zlib license (see LICENSE).

See the github wiki for full documentation.

Microservices

There are external components to this template referred to as "microservices". These can be omitted entirely by simply removing the React components that access them. These are also available via docker hub.

Setup Deployment

A clean install is this easy:

git clone https://github.com/krgamestudios/MERN-template.git
cd MERN-template
node configure-script.js
docker compose up --build

Setup Development

To set up this template in development mode:

  1. Ensure mariadb is running in your development environment
  2. Run mariadb tools/create_database.sql as the root user
  3. Run npm install
  4. Run cp .envdev .env and enter your details into the .env file
  5. Execute npm run dev
  6. Navigate to http://localhost:3001 in your web browser

Features List

Coming Soon

Coming Eventually