Coder Social home page Coder Social logo

hello-portal's Introduction

hello-portal

express

npx express-generator server --view=ejs --css=less

http://expressjs.com/en/starter/generator.html

introduce ts

npm run tsc -- --init
npm i --save-dev @types/express
npm i --save-dev @types/http-errors
npm i --save-dev @types/less-middleware
npm i --save-dev @types/cookie-parser

find server client -name *.js | xargs rm
find server client -name *.js.map | xargs rm
find server client -name *.css | xargs rm

https://github.com/BrianDGLS/express-ts

introduce bower & js frameworks/utils

git config url."https://".insteadOf git://
bower init
bower install jquery bootstrap --save

https://bower.io/
angularjs
introduce angularjs
bower install angular --save

https://code.angularjs.org/1.8.2/docs/tutorial
https://github.com/angular/angular-phonecat
work with angularjs
mkdir client & touch app.ts & reference bundle.js in server/views/angular.ejs

tsconfig -> https://www.typescriptlang.org/docs/handbook/tsconfig-json.html

introduce grunt

npm i -g grunt-cli
grunt --help && grunt clean && grunt

https://www.npmjs.com/package/grunt-contrib-clean
https://gruntjs.com/getting-started
grunt plugins
npm install -D load-grunt-config
npm install -D grunt-contrib-less grunt-contrib-watch

https://www.npmjs.com/package/grunt-concurrent
https://www.npmjs.com/package/grunt-eslint
https://www.npmjs.com/package/grunt-tslint
https://www.npmjs.com/package/grunt-ts
https://www.npmjs.com/package/grunt-contrib-copy
https://www.npmjs.com/package/grunt-contrib-uglify
https://www.npmjs.com/package/grunt-contrib-cssmin
https://www.npmjs.com/package/grunt-contrib-less
https://www.npmjs.com/package/grunt-contrib-watch
https://www.npmjs.com/package/load-grunt-config
https://gruntjs.com/plugins

work with ts-node (in development)

npm i -g ts-node && ts-node start-script

build & run

npm install && npm run clean && npm run compile && npm start

hello-portal's People

Contributors

zlebdg2 avatar xuqplus avatar

Watchers

 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.