All Projects → 1-Platform → one-platform

1-Platform / one-platform

Licence: MIT License
An integrated application hosting platform.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
SCSS
7915 projects
CSS
56736 projects
Nunjucks
165 projects

Projects that are alternatives of or similar to one-platform

LinuxMirrors
Linux 一键更换国内软件源
Stars: ✭ 623 (+2731.82%)
Mutual labels:  redhat
RHWSL
Red hat UBI as a WSL Instance. Supports multiple install.
Stars: ✭ 91 (+313.64%)
Mutual labels:  redhat
buildah-build
GitHub Action to use 'buildah' to build a container image.
Stars: ✭ 75 (+240.91%)
Mutual labels:  redhat
uPyEcho
Emulated Belkin WeMo device that works with Amazon Echo (Alexa) using MicroPython on an ESP32
Stars: ✭ 44 (+100%)
Mutual labels:  lighthouse
joomla-pythagoras
Joomla Pythagoras Repository
Stars: ✭ 19 (-13.64%)
Mutual labels:  lighthouse
docker-google-lighthouse-puppeteer
Google Lighthouse + Puppeteer / Docker Image
Stars: ✭ 29 (+31.82%)
Mutual labels:  lighthouse
lighthouse-mocha-example
Sample using lighthouse and lighthouse-core with Mocha to run tests on your project/site.
Stars: ✭ 60 (+172.73%)
Mutual labels:  lighthouse
performance-budgets
performance-budgets gives you a simple way to check and stay on top of performance
Stars: ✭ 56 (+154.55%)
Mutual labels:  lighthouse
howfast
A simple CLI for generating more accurate data from Lighthouse reports.
Stars: ✭ 15 (-31.82%)
Mutual labels:  lighthouse
nuxt-prune-html
🔌⚡ Nuxt module to prune html before sending it to the browser (it removes elements matching CSS selector(s)), useful for boosting performance showing a different HTML for bots/audits by removing all the scripts with dynamic rendering
Stars: ✭ 69 (+213.64%)
Mutual labels:  lighthouse
ganeti-rpm
Ganeti RPM Packaging
Stars: ✭ 23 (+4.55%)
Mutual labels:  redhat
AssmentTools
对于等保测评实施的现场测评工具
Stars: ✭ 18 (-18.18%)
Mutual labels:  redhat
openshift-cheatsheet
Red Hat OpenShift cheatsheet
Stars: ✭ 58 (+163.64%)
Mutual labels:  redhat
miq-RedHat-Satellite6
ManageIQ Automate Domain for integrating with Red Hat Satellite 6 developed by Red Hat Consulting.
Stars: ✭ 17 (-22.73%)
Mutual labels:  redhat
webperf-dashboard
Web Performance Dashboard forked from https://github.com/boyney123/garie
Stars: ✭ 51 (+131.82%)
Mutual labels:  lighthouse
nginx-conf
Nginx configuration
Stars: ✭ 18 (-18.18%)
Mutual labels:  redhat
rh024
Red Hat Enterprise Linux Technical Overview, affronta le pratiche di base per l'utilizzo di Linux e le attività di amministrazione del sistema.
Stars: ✭ 54 (+145.45%)
Mutual labels:  redhat
ansible-kafka
Ansible role for installing and configuring Apache Kafka on RedHat and Debian platforms.
Stars: ✭ 56 (+154.55%)
Mutual labels:  redhat
plugin-lighthouse
Lighthouse plugin for sitespeed.io
Stars: ✭ 24 (+9.09%)
Mutual labels:  lighthouse
amq-examples
This repository contains a set of examples to be used with Red Hat AMQ messaging suite components.
Stars: ✭ 25 (+13.64%)
Mutual labels:  redhat

One Platform Logo

One Platform

Version Documentation Maintenance License: MIT Total alerts

An integrated application hosting platform which allows you to host your SPAs. It also provides common services like

  • Authentication and Authorization
  • Notifications Framework
  • Feedback Framework

Prerequisites

Installation

Install node_modules for all the packages

PS: The below script also copies .env.example to .env for all the services

npm install

Environment Config

Copy all the .env.example to .env and add the following fields

  • For SPAs (packages ending with *-spa)

    1. Add API_URL and set the url to .env
  • For services (packages ending with *-service)

    1. Add database path in DB_PATH
    2. Add database name in DB_NAME
    3. Add database username in DB_USER
    4. Add database password in DB_PASSWORD

Example

## Database
DB_PATH=localhost
DB_NAME=platform
DB_USER=admin
DB_PASSWORD=admin

Using docker-compose for local development

To start the local environment setup using docker-compose, use the following cli command from the root of this project:

docker-compose up $service_name

This will start the service along with any dependent services/databases required for the service (for eg. mongo).

Note: The service name should match the service labels given the docker-compose.yml in the root directory.

Personal MongoDB instance using Docker Compose

You can also use docker-compose as a personal MongoDB instance. Just uncomment the ports in the docker-compose.yml file.

services:
  ...
  mongo:
    ...
    ports:
      - <local_port>:27017

You can replace the local port with any available port on your machine. I would recommend to not use the same 27017 port for your local, as that might cause conflicts with your local installation of MongoDB.

After that, just start the service:

docker-compose up mongo

This will start a MongoDB container instance, which can be accessed using localhost via the port mentioned in the docker-compose.

Run tests

npm run test

Deployments

Note: spashiprc needs to be pre-configured on your system prior to using this script. Please check SPAship documentation to learn how to set this up correctly.

Usage

You can use the deployment script for deploying any SPA to One Platform:

npm run deploy <PackageType> <PackageName> <PackagePath> <DeploymentEnv> <RefValue>

Deployment parameters:

  1. PackageType: Based on the type of package, the value can either be spa or service.

  2. PackageName: Name of the package directory. The expected directory naming convention is package name - spa/service. Examples: foo-spa, bar-spa.

  3. PackagePath: Route to which the package needs to be deployed. Examples: /, /foo, /bar, /foo/bar.

  4. DeploymentEnv: The environment to which the package needs to be deployed. The value of this parameter needs to correspond with the name of an environment entry in your .spashiprc file. Examples: qa, stage, opqa, opstage.

  5. RefValue: The reference version for this package. Usually this corresponds to a version number, however, it can also correspond to a string value for a valid ref. Example: 0.1.0

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

This project is MIT licensed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].