fast-spa

1.0.0 • Public • Published

Fast SPA

An attempt at minimizing time from idea to deployment using ansible, letsencrypt, git and ssh. Why use a globally spaning, super-optimzied CDN when the trusty old NGINX will do the trick? Unless your amazing site is serving many thousands requests per second - a puny single core VM will be more than enough

The process

fast-spa create -n kartansite -fqdn app14.kartan.no

Preqrequisites

Ensure that preqrequisites are installed:

  • git
  • ansible
  • ssh/scp

Setup the SPA

react-static // create-react-app - with parameters passed through if no match with fast-spa

Run the deployment prep

ansible-playbook playbook.yml

Build the app

yarn build

Push it to your deployment directory

scp dist app14.kartan.no:/var/www/app14.kartan.no

/fast-spa/

    Package Sidebar

    Install

    npm i fast-spa

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.89 kB

    Total Files

    4

    Last publish

    Collaborators

    • kjartab