Giter VIP home page Giter VIP logo

simple-twitter's Introduction

simple-twitter

This is a bare bones "Twitter clone" implemented in a single file that you can deploy to EC2

This uses:

Instructions

  1. Create an AWS account

    ... by following these instructions

  2. Install Nix:

    $ curl https://nixos.org/nix/install | sh
  3. Install the AWS command-line interface:

    $ nix-env --install awscli
  4. Configure your AWS credentials

    ... by following these instructions

    If you did this correctly you should have an ~/.aws/credentials file that looks similar to this:

    [default]
    aws_access_key_id = …
    aws_secret_access_key = …
  5. Install NixOps:

    $ nix-env --install nixops
  6. Build and redeploy the web application

    $ nixops create --deployment simple-twitter simple-twitter.nix
    $ nixops deploy --deployment simple-twitter --allow-reboot

If you make changes you can redeploy the application by re-running the last step:

$ nixops deploy --deployment simple-twitter --allow-reboot

To destroy the machine and clean up everything, run:

$ nixops destroy --deployment simple-twitter
$ nixops delete --deployment simple-twitter

Have fun! 🙂

Split files

You can also view the files split out by language:

simple-twitter's People

Contributors

gabriella439 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.