MERN-template
recog
MERN-template | recog | |
---|---|---|
31 | 4 | |
65 | 8 | |
- | - | |
5.6 | 0.0 | |
4 days ago | almost 3 years ago | |
JavaScript | TypeScript | |
zlib License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
MERN-template
-
So I spent 3.5 years making a game as a website...
Anyway, the structure of this website uses microservices, driven by an engine I dubbed the MERN-template. It has it's own auth service, and supports both chat and a news feed. The game-specific elements are closed-source though (the idea is you fork the core repo, and build out from there).
- login / registration form
-
Is the MERN stack still worth learning?
i use mariadb, but yes.
-
So I wrote an auth server - are people using it???
Backstory: Decade Jam, a game jam that lasts for a decade, began Jan 1st, 2020. I started writing a web game called Egg Trainer, but after a year of work realized that my codebase wasn't workable anymore. So at the beginning of 2021, I began working on a game engine that would power the beta version of ET - this is called the MERN-template (clearly, I'm bad at naming things).
-
MERN Stack, why?
My MERN-template actually uses MySQL. There's no requirement that you do it one specific way.
-
If you were tasked with creating a Reddit clone what would your stack be?
I'd use the MERN-template project that I wrote myself. It's essentially the mern stack, except with MySQL.
- BREAKING CHANGE: Now using cookies for authentication ยท krgamestudios/MERN-template
-
Monetising a Web Game
I've basically written this thing from the ground up, including an open source engine that uses microservices.
-
PSA: Your choice of Game Engine has little to no effect on whether your first game gets finished. And zero effect on whether you make a "good" game.
Anyway here's my game engine.
-
Why you should be obsessed with "dogfooding" your product
Oh, I've done this with my MERN-template. It was designed to power my game, but I made it available for others to use.
recog
-
Next-auth with custom backend
GitHub - Jenyus-Org/recog: Swiss school forum to connect business acquaintances across the country.
-
Authorisation and deployment confusion with Next app
Authorization can be handled with two popular methods. Cookies or access tokens. Since you're using NextJS I recommend the latter. Generate refresh and access tokens on your server, but never request them from the frontend. Instead, use Next-Auth.js to login with the Credentials provider and store the tokens in the session. I have an example of that here. Give the pages/api/auth/[...nextAuth].ts file a look in particular.
-
What Type of Website are you working on?
I also founded a start-up this year, and we're working in collaboration with the schools in our country to build a community forum with job postings as well as some other features like tutorials and a marketplace. We hope to go into public alpha by May, it's called Recog and you can view the respective GitHub repositories for our frontend and backend here and here.
-
A boilerplate for GraphQL, Sequilize, PostgreSQL on Node
Actually, if you want to already see what that boilerplate will look like now, you can check out the Recog GitHub repository which I'll probably use as a base when I get around to it. It uses TypeORM with SQLite, so it should be as easy as forking the repo, installing the dependencies and then running the project.
What are some alternatives?
Next.js - The React Framework
Chatapp - A simple react native chat app design built using expo react native.
Sequelize - Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.
ChatApp - GraphQL based web server and Vue chat app.
news-server - An API centric news server.
benchmarks - Fast and low overhead web framework fastify benchmarks.
Godot - Godot Engine โ Multi-platform 2D and 3D game engine
feathers - The API and real-time application framework
TypeORM - ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.
AdonisJs Framework - AdonisJS is a TypeScript-first web framework for building web apps and API servers. It comes with support for testing, modern tooling, an ecosystem of official packages, and more.
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript ๐
serverless-graphql - Serverless GraphQL Examples for AWS AppSync and Apollo