Skip to content

ytyszxf/front-end-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kii Corp front-end project framework

Prerequisite

    1. install npm > 5.0. In mac, run $ brew install npm. (if you have installed home brew). Or download from here..
    1. install gulp, by running $ sudo npm install gulp -g
    1. install bower, by running $ sudo npm install -g bower
    1. install express, by running $ sudo npm install -g expree

if you are using linux or windows, please install ruby

initialize project

go to server directory:

$ cd front-end-template/server

install node packages

npm install

run application

node bin/www

go back

$ cd ..

go to client directory:

$ cd front-end-template/client

update npm packages

$ npm update

install libs

$ bower install

now, open client/bower_components/bootstrap/bower.json with your favorite text editor, and find below content.

"main": [
  "less/bootstrap.less",
  "dist/js/bootstrap.js"
]

then edit this block as following.

"main": [
  "less/bootstrap.less",
  "dist/js/bootstrap.js",
  "dist/css/bootstrap.css"
]

inject dependencies

$ gulp

Now, all good! You should be able to visible this site through http://localhost:8080/index.html

Next time when you need to run this project:

$ node front-end-template/server/bin/www

$ cd front-end-template/client/

$ gulp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published