Coder Social home page Coder Social logo

starwars's Introduction

StarWars

Development server

Run ng serve --proxy-config proxy.conf.json or npm run start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Deployment Server

  1. Website can be accessed at the following URL http://3.1.206.225 or https://angular-star-wars.tk on Amazon EC2
  2. bash command to login - ssh -A -i "angularstarwars.pem" [email protected]
  3. go to app folder cd /home/ubuntu/StarWars/
  4. pull the latest updates git pull
  5. build the dist file sudo ng build --prod --build-optimizer
  6. restart nginx server sudo service nginx restart

Reference:
https://joeonsoftware.com/2018/08/12/deploy-an-angular-app-in-production-with-nginx-ubuntu-on-ec2/
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04

DevOps

using ng serve for automatic building development(forever)
https://medium.com/better-programming/how-to-properly-get-angular-and-nginx-working-together-for-development-3e5d158734bf
angular/angular-cli#4951

Setting up domain name, DNS routing, HTTPS and SSL cert

https://my.freenom.com/clientarea.php?action=domaindetails&id=1065661230
https://www.youtube.com/watch?v=HwZ3wNaM69s
https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04

Setting up Gzipped Contents

https://www.digitalocean.com/community/tutorials/how-to-add-the-gzip-module-to-nginx-on-ubuntu-14-04

Github configure

  1. follow the guide
  2. start the agent with - eval ssh-agent -s
  3. add the key ssh-add <key name>
    reference: https://help.github.com/en/articles/connecting-to-github-with-ssh

starwars's People

Contributors

brlala avatar gaojiaxue avatar yafenger avatar

Watchers

 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.