# fpm-cms-lld **Repository Path**: open-iot/fpm-cms-lld ## Basic Information - **Project Name**: fpm-cms-lld - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # fpm-cms-ng1-starter A web cms system. Stacks: - Running Container: `Docker`. - Database: `Mysql 5.6`. - Web Language: `Nodejs 8.11`. - BE Framework: `yf-fpm-server`. - Template engine: `nunjucks` [See Detail](https://nunjucks.bootcss.com/templating.html). - UI Lib: `AdminLte`. - FE Framework: `Angularjs1.x` & `jQuery` & `fpmc-ng1`. Prototype: [modao.cc](https://free.modao.cc/app/QVQaMYO4sdMe67xc9rJHRJDhZYLDEE5#screen=s9DF93ED1561530608388924) ## FAQ 1) How to use angularjs1.x ? See the Manual [http://www.angularjs.net.cn/](http://www.angularjs.net.cn/). 2) How to use nodejs ? See the homepage of the [nodejs](https://nodejs.org/en/docs/) 3) How to use mysql ? Emmmmm ~~. 4) How can we make `{{}}` working with angularjs not `nunjucks` ? > If you want to output any of the special Nunjucks tags like {{, you can use a {{, you can use a {% raw %} block and anything inside of it will be output as plain text. 5) How to use sweetAlert2 in javascript? ```javascript // import the kit module controller('PostCreateCtrl', ['$scope', '$ngFpmcService', 'kit', function ($scope, $ngFpmcService, kit) { kit.alert('ok'); // this returns a promise after the toast dismiss kit.toast('ok'); // this returns a promise after the toast dismiss kit.confirm('Yes or no?') .then(function(result){ kit.logger.debug(result.value); // the result.value will be true if 'Yes' Clicked ! }) }) ``` 6) See more FAQ in [FAQ.md](./FAQ.md)。 ## Source Directory ``` + Project | + fake | |- bot.js // fake bot | + source // node code files | | + backend // backend scripts | | + frontend | | | + routers | | | | - dashboard.js | | | | - login.js | | | - index.js | | | - session.js | | - app.js | + views // html files | | + pages | | | - dashboard.html | | | - login.html | | + tempates | | | - base.html | | | - void-main.html | + public | | + css // style files | | + js // script files | + sql // sql scripts | + tool // tool kits ``` ## Install ``` $ npm i && npm run build ``` ## Config file ``` $ cp config.default.json config.json ``` ## Dev ``` $ npm run docker && npm run dev ``` ## Run Demo ``` $ npm run demo ``` then open [http://localhost:8088](http://localhost:8088) ## Backup DB *WARNNING* require `python` before run this command. ``` $ npm run backup ```