2021-01-30 03:12:15 +11:00
2021-01-30 03:12:15 +11:00
2021-01-30 02:34:40 +11:00
2021-01-30 02:34:40 +11:00
2021-01-18 19:47:23 +11:00
2021-01-30 02:34:40 +11:00
2021-01-30 02:34:40 +11:00
2021-01-30 03:12:15 +11:00

MERN-template

A website template using the MERN stack.

Legalities

Please be aware that this template uses cookies. Yes, I know, it's annoying to show that message to the end user, but it's the law, at least in some places.

Setup Development

To set up this template, please ensure mariadb is running on the host computer, and run npm install as normal.

  1. Run sql/create_database.sql
  2. Run cp .envdev .env and enter your details into the new file
  3. Execute npm run dev

This should get the template working in development mode.

TODO list

  • Account system
    • sign up
    • validate email
    • login (with cookies)
    • logout (with cookies)
    • account deletion
    • annoying "This site uses cookies" message
    • CSS template?
  • Administration Panel
    • Exclusive to admin accounts
    • ban/unban accounts
    • inspect user data
  • News blog system
    • access an external news feed
    • build the microservice to provide the news feed
  • Chat system
  • Achievements?

Email settings

Some of the external requirements can be tricky, so let me outline what is needed. If you decide to use gmail as your email provider, then use the following .env settings:

MAIL_SMTP=smtp.gmail.com
MAIL_USERNAME=you@gmail.com
MAIL_PASSWORD=yourpassword

you'll also need to enable "less secure apps" for the specified email address. Remember - don't ever commit the .env file! You might even want to create a dedicated email address just for your project.

S
Description
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.
Readme Zlib 1.7 MiB
Languages
JavaScript 90.4%
CSS 8.5%
HTML 1.1%