Skip to content

Instantly share code, notes, and snippets.

View tg21's full-sized avatar
:octocat:
BUSY

Tushar Gautam tg21

:octocat:
BUSY
View GitHub Profile
@tg21
tg21 / main.dart
Created October 1, 2020 09:37
SetState not rendering when List are involved
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'dart:async';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@tg21
tg21 / meanOnEC2withTLS.md
Last active October 31, 2020 08:13
Setting Up MEAN stack app on amazon-ec2 with free TLS support for express and websockets as background service

Do exactly like this in this specific order

First Launch an instance (ubuntu is preferred) with port 22,80 and 443 open for ssh, http and https respectively.

after successfully ssh-ing into your server using ssh -i <ssh_key.pem> ubuntu@<your_server_ip> run following commands

Install Pre-requisites for MEAN

Install Node

go to nodesource and choose method to install latest LTS node