GithubHelp home page GithubHelp logo

aliangliang / cargocms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fennyliang/cargocms

0.0 2.0 0.0 118.84 MB

Cargo CMS

Home Page: http://cargo.trunksys.com

JavaScript 23.92% Makefile 0.01% HTML 42.15% PHP 0.24% CSS 32.40% Shell 0.01% Python 0.15% PLpgSQL 1.12%

cargocms's Introduction

Cargo CMS

Installation

npm -g install babel-cli

npm install

Run

npm run build

npm start

Ports

  • 5001 development sails server
  • 5002 development react admin dev server
  • 5011 production sails server

References

Issues

EJS JS/CSS Injection Issues

http://stackoverflow.com/questions/6609238/is-there-a-way-to-add-css-js-later-using-ejs-with-nodejs-express

use Cloud front

need to set cors.origin

ex:

cors.origin: 'http://cargo.trunksys.com, https://cargo.trunksys.com',

Project Layout

View Usages

// date only
<%=: row.createdAt | formatDate %>

// date time
<%=| row.createdAt | formatDateTime %>

Controller

// 標準前台功能
controllers/*Controller.js

// 標準 API 功能
controllers/api/*Controller.js

// 後台功能
controllers/admin/*Controller.js

// 站台專屬客製前台功能以 labfnp 為例
controllers/labfnp/*Controller.js

// 站台專屬客製 API 功能
controllers/api/labfnp/*Controller.js

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.