Code Monkey home page Code Monkey logo

docker-cezerin's Introduction

Cezerin - Ecommerce Progressive Web Apps

CircleCI

Cezerin is React and Node.js based eCommerce platform. Allows creating a Progressive Web Apps.

Built with:

  • Node.js v8.9
  • React v16
  • Redux
  • Express
  • Babel
  • WebPack 4
  • MongoDB

Dashboard

Client-side dashboard use JSON Web Token (JWT) to access REST API.

Cezerin Dashboard

Signin email

Store

Single-Page Application with React server-side rendering. Demo store

Cezerin Store

Cezerin Store

Installation

Requirements

  • Node.js >= 8
  • MongoDB >= 3.2

Documentation

Documentation

Application Structure

.
├── config                   # Project and build configurations
├── dist                     # Distribution folder
├── locales                  # Text files
├── logs                     # Log files
├── public                   # Static public assets and uploads
│   ├── admin                # Dashboard index.html
│   ├── admin-assets         # Dashboard assets
│   └── content              # Store root folder
|
├── scripts                  # Shell scripts for theme install/export
├── src                      # Application source code
│   ├── admin                # Dashboard application
│   │   └── client           # Client side code
│   ├── api                  # REST API
│   │   └── server           # Server side code
│   ├── store                # Store application
│   |   ├── client             # Client side code
│   |   ├── server             # Server side code
│   |   └── shared             # Universal code
│   └── index.js             # Server application start point
├── theme                    # Theme as a local package
└── process.json             # pm2 process file

Sponsoring

Cezerin is an MIT-licensed open source project. It's an independent project with ongoing development made possible thanks to the support of these awesome backers. Become a backer or sponsor on OpenCollective.

Sponsors

Become a sponsor and get your logo on our README on Github and cezerin.com with a link to your site.

0 0 0

Contributing

If you can, please contribute by reporting issues, discussing ideas, or submitting pull requests with patches and new features. We do our best to respond to all issues and pull requests within a day or two, and make patch releases to npm regularly.

Licence

This software is provided free of charge and without restriction under the MIT License

docker-cezerin's People

Contributors

restmount avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-cezerin's Issues

/var/www is empty

I tried running cezerin on docker but it failed with the following error log:

pm2 launched in no-daemon mode (you can add DEBUG="*" env variable to get more messages)
[2018-04-17 18:38:16] PM2 log: Launching in no daemon mode
[2018-04-17 18:38:16] PM2 error: [PM2][ERROR] File process.json not found
[2018-04-17 18:38:16] PM2 log: ┌──────────┬────┬──────┬─────┬────────┬─────────┬────────┬─────┬─────┬──────┬──────────┐
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
└──────────┴────┴──────┴─────┴────────┴─────────┴────────┴─────┴─────┴──────┴──────────┘
[2018-04-17 18:38:16] PM2 log:  Use `pm2 show <id|name>` to get more details about an app
[2018-04-17 18:38:16] PM2 log: [--no-daemon] Continue to stream logs
[2018-04-17 18:38:16] PM2 log: [--no-daemon] Exit on target PM2 exit pid=1

I looked into the container and found that /var/www is empty while as per Dockerfile it should be populated with released source code.

I believe this is because of volume mount on /var/www in docker-compose.yml. The directory on host machine is empty, mounting with that directory also makes the directory on container empty.

Failed connecting to MongoDB

if run the master container get this error:
I think is for no initialization of mongoDB
#3

2017-11-14 01:54:40: ┌──────────┬────┬─────────┬─────┬────────┬─────────┬────────┬─────┬───────────┬──────┬──────────┐
│ App name │ id │ mode    │ pid │ status │ restart │ uptime │ cpu │ mem       │ user │ watching │
├──────────┼────┼─────────┼─────┼────────┼─────────┼────────┼─────┼───────────┼──────┼──────────┤
│ cezerin  │ 0  │ cluster │ 35  │ online │ 1       │ 0s     │ 49% │ 37.8 MB   │ root │ enabled  │
│ cezerin  │ 1  │ cluster │ 22  │ online │ 0       │ 0s     │ 67% │ 38.6 MB   │ root │ enabled  │
│ cezerin  │ 2  │ cluster │ 29  │ online │ 0       │ 0s     │ 85% │ 37.7 MB   │ root │ enabled  │
│ cezerin  │ 3  │ cluster │ 45  │ online │ 0       │ 0s     │ 43% │ 28.6 MB   │ root │ enabled  │
└──────────┴────┴─────────┴─────┴────────┴─────────┴────────┴─────┴───────────┴──────┴──────────┘
2017-11-14 01:54:40:  Use `pm2 show <id|name>` to get more details about an app
2017-11-14 01:54:40: [--no-daemon] Continue to stream logs
2017-11-14 01:54:40: [--no-daemon] Exit on target PM2 exit pid=1
01:54:41 2|cezerin  | info: Server start at http://:::3000
01:54:41 0|cezerin  | info: Server start at http://:::3000
01:54:41 2|cezerin  | error: Failed connecting to MongoDB failed to connect to server [127.0.0.1:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]
01:54:41 0|cezerin  | error: Failed connecting to MongoDB failed to connect to server [127.0.0.1:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]
01:54:42 1|cezerin  | info: Server start at http://:::3000
01:54:42 1|cezerin  | error: Failed connecting to MongoDB failed to connect to server [127.0.0.1:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]
01:54:42 3|cezerin  | info: Server start at http://:::3000
01:54:42 3|cezerin  | error: Failed connecting to MongoDB failed to connect to server [127.0.0.1:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]

generate access tokens

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.