Coder Social home page Coder Social logo
PowerCMS photo

power-cms Goto Github PK

repos: 10.0 gists: 0.0

Name: PowerCMS

Type: Organization

Bio: Domain Driven, CQRS based CMS project in Microservices architecture, written for developers

PowerCMS

Build Status Coverage Status

PowerCMS is a Domain Driven, CQRS based CMS project in Microservices architecture, written for developers. Good architecture, code quality and fancy technologies will be always on the first place!

How to use?

git clone [email protected]:power-cms/power-cms.git
cd power-cms
cp .env.dist .env
docker-compose up

To run seeds, start the server, and then run the following command:

./seeds.sh

Packages

How to test?

npm test

Production

Here you have an example of production-ready docker-compose.yml file. It doesn't require cloning the repository, because it's fully dockerized.

version: "3.4"

services:
  api:
    image: powercms/power-cms
    environment:
      SERVICES: api
    networks: ["power-cms"]
    depends_on: ["nats", "mongodb"]
    ports: ["3000:3000"]
    labels:
      - "traefik.enable=true"
      - "traefik.backend=api"
      - "traefik.port=3000"
      - "traefik.frontend.entryPoints=http"
      - "traefik.frontend.rule=PathPrefix:/"

  site:
    image: powercms/power-cms
    environment:
      SERVICES: site
    networks: ["power-cms"]
    depends_on: ["nats", "mongodb"]

  user:
    image: powercms/power-cms
    environment:
      SERVICES: user
    networks: ["power-cms"]
    depends_on: ["nats", "mongodb"]

  auth:
    image: powercms/power-cms
    environment:
      SERVICES: auth
      ACCESS_TOKEN_SECRET: power-cms-access
      REFRESH_TOKEN_SECRET: power-cms-refresh
    networks: ["power-cms"]
    depends_on: ["nats", "mongodb"]

  settings:
    image: powercms/power-cms
    environment:
      SERVICES: settings
    networks: ["power-cms"]
    depends_on: ["nats", "mongodb"]

  mongodb:
    image: mongo:4
    networks: ["power-cms"]

  nats:
    image: nats
    networks: ["power-cms"]

  traefik:
    image: traefik
    command: --web --docker --docker.domain=docker.localhost --logLevel=INFO --docker.exposedbydefault=false
    networks:
      - power-cms
    ports:
      - "4001:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /dev/null:/traefik.toml

networks:
  power-cms:

To run seed in production use this one-liner script while your app is started:

docker run --rm -it --network=${PWD##*/}_power-cms powercms/power-cms sh -c "sh ./seeds-prod.sh"

License

Copyright © 2019 by Szymon Piecuch under ISC license.

PowerCMS's Projects

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.