Mix.install([
{:plug_cowboy, "> 0.0.0"},
{:jason, "> 0.0.0"},
{:httpoison, "> 0.0.0"}
])
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"name": "Mombasa", | |
"code": 1, | |
"capital": "Mombasa City" | |
}, { | |
"name": "Kwale", | |
"code": 2, | |
"capital": "Kwale" | |
}, { | |
"name": "Kilifi", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mysql.connector | |
from mysql.connector import errorcode | |
config = { | |
'user': 'root', | |
'password': '', | |
'host': 'localhost', | |
'database': 'acme' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 20230518173256 | |
// https://gist.githubusercontent.com/theguuholi/0a8d3c8ca651f0fe737e10d53415eb20/raw/5a7e49e9c0a7b88b8449639e620d92dde435e5e6/vscode-settings.json | |
{ | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"emmet.includeLanguages": { | |
"html-eex": "html" | |
}, | |
"files.associations": { |
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)