GithubHelp home page GithubHelp logo

l-i-n-k-u-p / reactive-cms Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 0.0 7.51 MB

A simple CMS more!

Home Page: https://reactive-web.github.io/reactive-cms/

License: MIT License

JavaScript 34.12% Vue 60.75% CSS 1.09% Shell 1.42% EJS 2.62%
nodejs vuejs fastify mongoosejs mongodb vue-mc tiptap vue-router pm2 socket-io

reactive-cms's Introduction


A simple CMS more to start your project!

Technologies and Design

  • Docker
  • NodeJS
  • MongoDB
  • FastifyJS
  • MongooseJS
  • VueJS
  • Vue-MC
  • Vue-Router
  • Tiptap
  • SocketIO
  • PM2
  • Material Design

Requeriments

  • Linux
  • Docker
  • Nginx latest (if you don't use Docker)
  • NodeJS > v10.16.0 (if you don't use Docker)
  • MongoDB latest (if you don't use Docker)

Initial Configuration

  • Edit config/config.js file with your preferences
const APP_CONFIG = {
  port: 3000,
  mongoDBURI: 'mongodb://192.168.1.8:27017/reactivecms',
  bcryptSaltRounds: 12,
  appSecret: 'iCD5e@rx$3-9rR_QZwIW2Dg-Zn^h&heS', // 32 characters
  staticUploadPath: 'site-static',
  staticUploadPrefix: 'public', // use '/public/' instead of '/site-static/'
  uploadDirectory: 'site-static/uploads/',
  staticFilesPath: 'static',
  staticFilesPrefix: 'website',
  sessionMaxAge: 1000 * 60 * 60 * 24 * 3, // 3 days
  ipAddressToListen: '0.0.0.0', // 0.0.0.0 for docker container
  domain: 'localhost', // localhost \ domain.com
  fastifyOptions: {
    http2: false,
    https: null,
    ignoreTrailingSlash: true,
    logger: false,
  },
  socketIOOptions: {
    socketIOpingTimeout: 60000,
    pingInterval: 10000,
    pingTimeout: 5000,
  },
  emailOptions: {
    emailService: 'gmail',
    emailAccount: '',
    emailAccountPassword: '',
  },
}

Install and running app using Docker

cd reactive-cms;
sh rcms.sh -h; # you can see all commands for use app with Docker
sh rcms.sh --deployment; # this command download and create images
sh rcms.sh --start-development; # this command create docker containers and run all services

When you use --start-development or --start-production mode, all services are running in each container and you can see the logs using:

docker logs <container id> -f --tail 100

Install and running app without Docker

cd reactive-cms;
npm install;
npm run start; # compile dashboard and run server in production mode
npm run server-production; # only run server in production mode
npm run server-development; # run server in development mode and watch for file changes
npm run server-monit; # show all server logs with PM2
npm run server-logs; # show all server logs
npm run server-stop; # stop all server instances
npm run dashboard-development; # compile dashboard in development mode and watch for file changes
npm run dashboard-production; # compile dashboard in production mode

Test

If you don't edit nothing about default ports from config.js

Now enter to: localhost:3000 and fill the setup form.

To do:

  • Create global environment config for all containers
  • Prepare all containers for use docker stack deploy
  • Create complete documentation page

Email:

[email protected]


Development by:
linkup

reactive-cms's People

Contributors

dependabot[bot] avatar eduardobc88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

reactive-cms's Issues

FST_ERR_PROMISE_NOT_FULLFILLED

Hello, I am very intrigued with your project. I am exploring your fastify stack.

I and running docker on windows with all containers lit up. I am having to reacquaint myself with Docker.
$ d ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
35320503349c rcms-nginx-img:latest "/bin/sh -c 'cp ./ng…" 11 hours ago Up 11 hours 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp rcms-nginx-service
baab5a2ebf21 rcms-nodejs-img:latest "npm run server-deve…" 11 hours ago Up 11 hours rcms-app-service
9892aa386a90 rcms-mongodb-img:latest "mongod --bind_ip_all" 11 hours ago Up 11 hours 0.0.0.0:27017-27018->27017-27018/tcp rcms-mongodb-service
6eb903818443 rcms-nodejs-img:latest "npm run dashboard-d…" 11 hours ago Up 11 hours rcms-dashboard-app

docker logs baab5a2ebf21 -f --tail 100

I can get to web form however when I submit, I get in log:

0|REACTIVE-CMS | {"level":30,"time":1603459171118,"pid":35,"hostname":"rcms-app-service","reqId":70,"req":{"method":"POST","url":"/setup","hostname":"localhost","remoteAddress":"192.168.3.4","remotePort":55898},"msg":"incoming request","v":1}
0|REACTIVE-CMS | {"level":40,"time":1603459171129,"pid":35,"hostname":"rcms-app-service","reqId":70,"msg":"viewsSaved is not iterable","stack":"TypeError: viewsSaved is not iterable\n at Object.exports.websiteSetupSetInitialConfig (/reactive-cms/server-app/module/website/controller.js:89:22)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","type":"Error","v":1}
0|REACTIVE-CMS | {"level":30,"time":1603459171134,"pid":35,"hostname":"rcms-app-service","reqId":70,"res":{"statusCode":500},"responseTime":15.217699997127056,"msg":"request completed","v":1}
0|REACTIVE-CMS | {"level":30,"time":1603459171347,"pid":35,"hostname":"rcms-app-service","reqId":71,"req":{"method":"GET","url":"/favicon.ico","hostname":"localhost","remoteAddress":"192.168.3.4","remotePort":55900},"msg":"incoming request","v":1}
0|REACTIVE-CMS | {"level":30,"time":1603459171348,"pid":35,"hostname":"rcms-app-service","reqId":71,"res":{"statusCode":302},"responseTime":0.49560000002384186,"msg":"request completed","v":1}
0|REACTIVE-CMS | {"level":30,"time":1603459171353,"pid":35,"hostname":"rcms-app-service","reqId":72,"req":{"method":"GET","url":"/setup","hostname":"localhost","remoteAddress":"192.168.3.4","remotePort":55902},"msg":"incoming request","v":1}
0|REACTIVE-CMS | {"level":50,"time":1603459171355,"pid":35,"hostname":"rcms-app-service","reqId":72,"err":{"type":"FastifyError","message":"FST_ERR_PROMISE_NOT_FULLFILLED: Promise may not be fulfilled with 'undefined' when statusCode is not 204","stack":"FastifyError [FST_ERR_PROMISE_NOT_FULLFILLED]: FST_ERR_PROMISE_NOT_FULLFILLED: Promise may not be fulfilled with 'undefined' when statusCode is not 204\n at /reactive-cms/node_modules/fastify/lib/wrapThenable.js:34:30\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","name":"FastifyError [FST_ERR_PROMISE_NOT_FULLFILLED]","code":"FST_ERR_PROMISE_NOT_FULLFILLED","statusCode":500},"msg":"Promise may not be fulfilled with 'undefined' when statusCode is not 204","v":1}
0|REACTIVE-CMS | {"level":30,"time":1603459171359,"pid":35,"hostname":"rcms-app-service","reqId":72,"res":{"statusCode":200},"responseTime":5.610799998044968,"msg":"request completed","v":1}

Are you still actively working on this project? Is it running somewhere that I can see?

Thank You

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.