Giter Site home page Giter Site logo

daniegarcia254 / stats-portal Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 6.49 MB

ExtJS 6.5 Universal web app example: login, grids and interactive graph. Back REST API deployed with Claudia.js in a AWS Lambda function and API Gateway.

Home Page: https://stat-extjs-portal.herokuapp.com/

License: MIT License

JavaScript 68.99% Shell 0.01% CSS 29.58% HTML 1.42% Ruby 0.01%
extjs extjs6 claudia-api-builder claudia-js aws-lambda docker docker-compose

stats-portal's Introduction

Stats Portal

ExtJS universal (modern && classic) responsive web portal with login and user statistics visualization.

  • Frontend has been developed using Ext JS 6.5.3
  • Backend has been developed with NodeJS && ExpressJS, and deployed as an AWS Lambda function using Claudia.js

User will be able to login in the portal and see some user statistics represented in a graph and a grid.

Table of Contents

Configuration

Database

For the database, JawsDB MySql Heroku plugin is used.

Datbase credentials will be saved on Heroku Config Var: JAWSDB_URL

Server

AWS Credentiasl

To deploy the server with ClaudiaJS you will need and AWS account correctly configured. Make sure that claudia.js is correctly installed and configured following these instructions.

Once you have everything configured, just put your AWS user credentials in the server/aws-credentials file with the following format:

[username]
aws_access_key_id = XXXXXXXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXXXXX
Database and other

Fill the env var values in the file server/config-env.json:

  • MYSQL_HOST: database host (get it from JAWSDB_URL)
  • MYSQL_PORT: database port (default: "3306")
  • MYSQL_DB: database (get it from JAWSDB_URL)
  • MYSQL_USER: database user (get it from JAWSDB_URL)
  • MYSQL_PWD: database pwd for user (get it from JAWSDB_URL)
  • MASTER_USER: client login username (default: "stats")
  • MASTER_PWD: client login password (default: "st4ts")
  • SESSION_DURATION: session duration for the JWT (default: "86400" )
  • SESSION_SECRET: secrte key fot the JWT tokens generation

Client

  • In file client/app/config/Runtime.js just replace "API_GATEWAY_URL" with the backend service URI (usually the one returned by ClaudiaJS when backend is deployed in AWS)

  • Compilation

sencha app build testing

Deploy

Both frontend and backend are deployed using Heroku (for deploy with Docker please refer to docker-master branch):

  • Frontend: compile version of the portal is deployed with the heroku/php buildpack
git push heroku master
  • Backend: deployed as AWS Lambda using the heroku/nodejs buildpack through a dyno worker
heroku run deployapigateway

stats-portal's People

Contributors

daniegarcia254 avatar dgarciamaubic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.