GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 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.

BranchesTags
Open more actions menu

Latest commit

 

History

268 Commits
268 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
client
client
 
 
common/utilities
common/utilities
 
 
server
server
 
 
tools
tools
 
 
.envdev
.envdev
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
configure-script.js
configure-script.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

(I am now mirroring to github from my private gitea, because mircrosoft is evil.)

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:

  • React
  • Nodejs
  • MariaDB (with Sequelize)
  • Docker (with docker compose)

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.

  • News Server: https://github.com/krgamestudios/news-server
  • Auth Server: https://github.com/krgamestudios/auth-server
  • Chat Server: https://github.com/krgamestudios/chat-server

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
  7. Repeat this process for each microservice (linked above)

Features List

  • Mainly one language across the codebase (JavaScript)
  • Full documentation
    • Setup tutorial
  • Fully Featured Account System (as a microservice)
    • Email validation
    • Logging in and out
    • Account deletion
    • Password management
    • JSON web token authentication
    • HttpOnly cookies for security
    • Optional post validation hook
  • Fully Featured News Blog (as a microservice)
    • Publish, edit or delete articles as needed
    • Secured via admin panel
  • Fully Featured Chat System (as a microservice)
    • Available when logged in
    • Chat logs saved to the database
    • Room-based chat (type /room name to access a specific room)
  • Moderation tools
    • Permanently banning users
    • Chat-muting users for a time period
    • Users reporting offensive chat-content
  • Easy To Use Configuration Script
    • Sets up everything via docker
    • A default admin account (if desired)

Coming Soon

  • Full documentation
    • Modding tutorials
  • Fully Featured News Blog (as a microservice)
    • Individual pages for news articles

Coming Eventually

  • Fully Featured News Blog (as a microservice)
    • Restore deleted articles
    • Undo edits
  • Fully Featured Chat System (as a microservice)
    • Custom emoji
    • Private messaging
    • Broadcasting to all channels
    • Badges next to usernames
  • Backend for leaderboards (modding tutorial?)
  • Backend for energy systems (modding tutorial?)
  • Backend for items, shops, trading and currency (modding tutorial?)

About

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.

gitea.krgamestudios.com/krgamestudios/MERN-template

Topics

dockerexpressjsgame-developmentgame-enginegamedevmern-stacknodejspbbgreactjssequelizejs

Resources

Readme
Zlib license
Activity
Custom properties

Stars

77 stars

Watchers

4 watching

Forks

10 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.