Skip to content

cklinker/backoffice-administration

 
 

Repository files navigation

alt tag

MAGOWARE is an IPTV/OTT solution for Pay Tv Businesses. The administration portal is build on Sequelize, Express, ng-admin, and Node.js

Installation

Before you start, make sure you have these prerequisites installed:

  • PostgreSQL 9.4 or MySQL, MariaDB, SQLite and MSSQL (Depending on your project but SEAN.JS defaults to PostgreSQL 9.4)
  • Redis Server
  • Node.js
  • NPM

Running in Production mode

To run your application with production environment configuration, execute grunt as follows:

$ grunt prod
  • explore config/env/production.js for production environment configuration options

Running with TLS (SSL)

Application will start by default with secure configuration (SSL mode) turned on and listen on port 8443. To run your application in a secure manner you'll need to use OpenSSL and generate a set of self-signed certificates. Unix-based users can use the following command:

$ sh ./scripts/generate-ssl-certs.sh

Documentation Status Join the chat at https://gitter.im/seanjs-stack/seanjs Build Status Dependencies Status bitHound Overall Score Heroku Built with Grunt

NPM

SEAN.JS is a Full-Stack Javascript for an easy starting point with SequilizeJS, ExpressJS, AngularJS and NodeJS based applications. It is designed to give you a quick and organized way to start developing SEAN based web apps.

Configured with

  • RedisStore: Redis session store backed by node_redis, and is insanely fast!
  • ACL: An Access Control List module, based on Redis with Express middleware support
  • Async: Higher-order functions and common patterns for asynchronous code
  • Passport: Simple, unobtrusive authentication for Node.js (Facebook, Twitter, LinkedIn, Google and PayPal)
  • Socket.io: Node.js realtime framework server
  • reCaptcha: Tough on bots Easy on humans
  • Nodemailer: Send e-mails with Node.JS – easy as cake!
  • And many more...

Based on MEAN Stack



For quick development and deployment:

Install:

Using Docker, you don't have to install any prerequisites on your machine. Just install Docker, run docker-compose up and you are up and running!

You will have these containers created for you:

  • Nodejs (4.2.3)
  • PostgreSQL (Latest)
  • Redis (Latest)

Local development and testing with compose:

$ docker-compose up

Note: You might need to try this command eval "$(docker-machine env default)" in the project directory root to activate Docker


Installation

Before you start, make sure you have these prerequisites installed:

  • PostgreSQL 9.4 or MySQL, MariaDB, SQLite and MSSQL (Depending on your project but SEAN.JS defaults to PostgreSQL 9.4)
  • Redis Server
  • Node.js
  • NPM

Using Command Line:

For MySQL, MariaDB, SQLite and MSSQL

Please replace:

And update your database in the config/env/


Database migration

$ sequelize migration:create # Generates a new migration file.

To upgrade the database with the latest changes run the following:

$ sequelize db:migrate
  • explore config/env/production.js for production environment configuration options

Running with TLS (SSL)

Application will start by default with secure configuration (SSL mode) turned on and listen on port 8443. To run your application in a secure manner you'll need to use OpenSSL and generate a set of self-signed certificates. Unix-based users can use the following command:

$ sh ./scripts/generate-ssl-certs.sh

Windows users can follow instructions found here. After you've generated the key and certificate, place them in the config/sslcerts folder.

Finally, execute grunt's prod task grunt prod

  • enable/disable SSL mode in production environment change the secure option in config/env/production.js

Delete GIT History

Step 1: remove all history

rm -rf .git Step 2: reconstruct the Git repo with only the current content

git init git add . git commit -m "Initial commit" Step 3: push to GitHub.

git remote add origin git push -u --force origin master


API Documentation

Run the following command to generate APIDOC folder

apidoc -i modules/deviceapiv2/server/controllers/ modules/streams/server/controllers/ -o public/apidoc/

License

(The MIT License)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.8%
  • HTML 4.7%
  • CSS 1.5%