0.0.60 • Published 5 years ago

libx.fuser v0.0.60

Weekly downloads
59
License
ISC
Repository
github
Last release
5 years ago

Libx.fuser

MIT license npm CircleCI npm

libx.fuser is a framework, bundler and a static-site generator, all combined. Based on libx.js.

Features:

Libx.fuser Can allow you build webapps which are:

  • Serverless - Zero maintenance of servers
  • Static - All resources are compiled, built and bundled ahead of time
  • Progressive - Crucial resources loaded immediately while other components are loaded when needed
  • Slick - Jade/Pug engine is used to precompile neat declarative markdown into HTML
  • Continuously Deployed - Changes are automatically deployed and served, based on the git branch
  • Edge technology - Using Firebase to store and propagate changes to all viewer in real time, manage user authentication and serverless+microservices using Cloud Functions

Tools:

  • libx.js (npm) - Swiss army knife full of useful modules and helpers
  • libx.fuser (npm) - A prebuilt framework of script bundles, styles and configurations. Also serves as bundler (like Webpack), and dev env server.
  • Firebase - Database, auth, Cloud Functions
  • Netlify - CI/CD, hosting, pre-rendering, routing, DNS management, SSL

Description:

This project grabs statuses and information from LeasePilot's github repo and PivotalTracker. The infrastructure used here is libx.fuser & libx.js which provide a framework of predefined bundles, configs and heavily modified version of AngularJS (1.7) to make it progressive and modern. Also provides a handy workspace by using a specifically designed bundler and local server to generate static (pre-compiled) & bundled webapp. The tools used, mainly Firebase & Netlify, allows the maintenance seamless and effortless by continue deployment, hosting, dns, and enhanced database & synchronization.

Usage

npm install --save libx.fuser

Grab latest fuser.js:

curl -O -L https://raw.githubusercontent.com/Livshitz/libx.fuser/master/tools/fuser.js

Initial Setup:

  1. Clone the repo and cd into the project folder
  2. npm install to install dependencies for the webapp
  3. npm install -g firebase-tools
  4. Firebase:
    1. Create account in Firebase and grab your personal token by running firebase login:ci
    2. Create new project and realtime-database
    3. cp src/project-secrets-empty.json src/project-secrets.json
    4. Get your service account ('private key'), copy it's content to the file src/project-secrets.json
    5. Create a private passphrase to secure your secrets file export FUSER_SECRET_KEY=<your-secret>
    6. Lock your secrets file node node_modules/libx.fuser --secrets-lock
    7. Edit src/project.json file with relevant paths to your new Firebase project
  5. Netlify (optional):
    1. Create new project and point to your cloned repo

Running Locally:

Run local server: node fuser-client.js --secret=<?>.

With api (local Firebase Cloud Functions): node fuser-client.js --secret=<?> --api.

Useful Commands:

  • node fuser-client.js - Build & run local frontend server with watch and hot-reload
  • node fuser-client.js --build - Build only
  • node fuser-client.js --api - Build & run local frontend server with local backend (cloud functions)
  • node node_modules/libx.fuser --api-run - Run local backend only
  • node fuser-client.js --env=prod - Run local frontend server with production configuration (bundling & compression enabled)
  • node fuser-client.js --api-deploy - Deploy whole api backend
  • node node_modules/libx.fuser --secrets-lock - Encrypt your secrets file
  • node node_modules/libx.fuser --secrets-unlock - Decrypt your secrets file
  • firebase deploy -P <project> --only functions:'<functionsGroupName>.<functionName>' --token <token> - Deploy only one specific Cloud function from your api

Contributing

Fork into your own repo, run locally, make changes and submit PullRequests to the main repository.

License

All projects and packages in this repository are MIT licensed.

0.0.60

5 years ago

0.0.59

5 years ago

0.0.58

5 years ago

0.0.57

5 years ago

0.0.56

5 years ago

0.0.55

5 years ago

0.0.54

5 years ago

0.0.53

5 years ago

0.0.52

5 years ago

0.0.51

5 years ago

0.0.50

5 years ago

0.0.49

5 years ago

0.0.48

5 years ago

0.0.47

5 years ago

0.0.46

5 years ago

0.0.45

5 years ago

0.0.44

5 years ago

0.0.43

5 years ago

0.0.41

5 years ago

0.0.40

5 years ago

0.0.39

5 years ago

0.0.38

5 years ago

0.0.37

5 years ago

0.0.36

5 years ago

0.0.35

5 years ago

0.0.34

5 years ago

0.0.33

5 years ago

0.0.32

5 years ago

0.0.31

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago