Skip to content

Instantly share code, notes, and snippets.

View Xavier-Platinum's full-sized avatar
:atom:
Pro

Kwis Lawrence Francis Xavier-Platinum

:atom:
Pro
View GitHub Profile
@bradtraversy
bradtraversy / mern-server-setup.md
Last active February 5, 2026 06:33
Setup Ubuntu & Deploy MERN app

Linux Server Setup & MERN App Deployment

These are the steps to setup an Ubuntu server from scratch and deploy a MERN app with the PM2 process manager and Nginx. We are using Linode, but you could just as well use a different cloud provider or your own machine or VM.

Create an account at Linode

Click on Create Linode

Choose your server options (OS, region, etc)

SSH Keys

@adrianhajdin
adrianhajdin / StateContext.js
Last active December 21, 2025 10:59
Build and Deploy a Modern Full Stack ECommerce Application with Stripe
import React, { createContext, useContext, useState, useEffect } from 'react';
import { toast } from 'react-hot-toast';
const Context = createContext();
export const StateContext = ({ children }) => {
const getLocalStorage = (name) => {
if (typeof window !== 'undefined') {
const storage = localStorage.getItem(name);