Coder Social home page Coder Social logo

socketshot's Introduction

Nameless Conflict

Debug and Run

  1. Setup your AWS credentials
    1. Install the AWS CLIs
    2. Run aws configure
    3. Enter in your 2-part security credentials (available here)
  2. Create a file at the root directory called config.ini. Contents should look like the following:
    mongoDbLocation=MONGO_DB_CONNECTION_STRING
    s3LoggingBucket=rw3000-logs
  3. Open VS Code
  4. Select Web Server or Game Server
    • These options are specified in .vscode/launch.json
  5. Click the green triangle to start debugging

Infrastructure

The infrastructure/ folder defines all the AWS resources in the form of TypeScript using CDK (see the API reference).

How to Deploy using Beanstalk

  1. Install EB CLI (Note the compatibility notes. If you have trouble installing, try EB CLI version 3.14.5 or earlier.) (If YAML errors, try: pip install PyYAML==3.11)
  2. cd src
  3. Run eb deploy (for specific environment: 'eb deploy EnvironmentName')

How to deploy (OBSOLETE)

  1. npm install -g cdk if you haven't installed CDK
  2. cd infrastructure if you're not in the directory
  3. npm run build
  4. cdk diff see what's going to change before doing it
  5. cdk deploy

Configuring an EC2 instance from Scratch

  1. FTP files onto EC2
  2. download and install npm
  3. npm install nodejs
  4. npm install

Install pm2 to automate server startup

  1. sudo su
  2. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
  3. nvm install 12.10.0
  4. npm install -g pm2
  5. pm2 start app.js -f -- 3001
  6. pm2 start app.js -f -- 3002 (etc for however many ports you want to run on a single server)
  7. pm2 startup (Gets startup script - run the result in terminal)
  8. pm2 save

Stop app from auto running on ec2 startup:

  1. pm2 unstartup systemv

socketshot's People

Contributors

invalidunits avatar prestonrobertson avatar treatmet 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.