Giter Site home page Giter Site logo

hapi-cms's Introduction

Introduction

CMS Application

Requirements

Dev

  • Nodejs 6.0 and above
  • MongoDB
  • Redis
  • Elastic Search
  • Nodemon: npm install -g nodemon

Production

  • Dev +
  • pm2

Install

cd web          # Change directory to web
npm install     # Install nodejs dependency
cd web/public/assets/admin # Change directory to admin
bower install   # Install bower dependency admin
cd web/public/assets/site # Change directory to admin
bower install   # Install bower dependency site
  • Import/Export MongoDB Database
cd misc/seeds  # Change directory to misc/seeds
node import    # Run this command to import default cms data
node export    # Run this command to export your cms data and share to team members
  • Default CMS Account
[email protected]/iii3studi1

How to run:

  • Using Nodemon
npm start          # In the service folder - example: cms, web, api-user
nodemon app         # In the service folder

or

gulp

List services:

##Solutions/Resources

##Cấu trúc:

Project
| 
|--misc # Chứa hướng dẫn config server và import, export DB
|
|--web # Chứa code site 
    |
    |--app # Chứa app chính
        |
        |--bootstrap # boot đầu tiên khi vào app
 		|
 		|--config # Chứa những config của site
 		|
 		|--lib # Chứa config thư viện được sử dụng và các plugin
 		|
 		|--model # Chứa tất model (colection) trong mongoses
 		|
 		|--modules # Gồm những module admin, web, api 
 			|
 			|--(admin,web,api)-*
 				|
 				|--controller # Chứa controller server của module đó
 				|
 				|--util # chứa helper những function sử dụng chung cho module đó phía server 
 				|
 				|--view # Phần client
 					|
 					|--client # Chứa code client của module đó 
                index.js    # File chứa chính để load module đó vào hapi 
 		|
 		|--utils # phần helper dùng chung cho cả app, chứa middleware, event, socket của app
 		|
 		|--views # Chứa layout, partial của (app, module) và chứa helper của hadlebar template 
 	|
 	|--node_modules # thư viện node
 	|
    |--gulp # chứa các file phục vụ việc gulp
    |
 	|--public # phần công cộng
 		|
 		|--assets # Chứa (fonts, images, scripts, styles) của site
 		    |
 		    |--(admin,site)
                |
                |--bower_components # Chứa thư viện dung bower.
                |
                |--fonts # Chứa fonts
                |
                |--images # Chứa Hình ảnh cắt html
                |
                |--script # Chứa js util và biến setting của (admin,site) (những phần dùng chung)
                |
                |--styles # Chứa css những phần dùng chung và file main.scss để import css
            |
            |--global # Chứa 
        |
        |--build # Chứa js,css đã min rồi
        |
        |--dist # Chứa js,css min và fonts,image để move live
        |
        |--tmp # Chứa js,css chưa min
        |
        |--libs # Chứa thư viện dùng ngoài không dùng bower
 		|
 		|--files # Chứa files upload




    

hapi-cms's People

Contributors

hoangvu2015 avatar

Watchers

James Cloos avatar

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.