Skip to content

Instantly share code, notes, and snippets.

View Iamkosgei's full-sized avatar
🚀
Working from home

kelvin kosgei Iamkosgei

🚀
Working from home
View GitHub Profile
@Iamkosgei
Iamkosgei / express_postgress_knex.md
Created March 23, 2020 13:25 — forked from laurenfazah/express_postgress_knex.md
Cheat Sheet: Setting up Express with Postgres via Knex

Express & Postgres via Knex

Note: <example> is meant to denote text replaced by you (including brackets).

Setup

// global dependencies
npm install -g knex
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'SignUpResponseModel.dart';
class SignUpPage extends StatefulWidget {
@override
_SignUpPageState createState() => _SignUpPageState();
@Iamkosgei
Iamkosgei / django_deploy.md
Created February 22, 2020 16:00 — forked from bradtraversy/django_deploy.md
Django Deployment - Digital Ocean

Django Deployment to Ubuntu 18.04

In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc

Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server

Create A Digital Ocean Droplet

Use this link and get $10 free. Just select the $5 plan unless this a production app.