Angular 2 tool to create mockups
MIT License
Angular 2 tool to create mockups
# clone our repo
# --depth 1 removes all but one .git commit history
git clone --depth 1 https://github.com/akserg/ng2-mockup.git
# change directory to our repo
cd ng2-mockup
# install the repo with npm
npm install
# start the server
npm start
go to http://0.0.0.0:3000 or http://localhost:3000 in your browser
What you need to run this app:
node
and npm
(brew install node
)v4.1.x
+ and NPM 2.14.x
+Once you have those, you should install these globals with npm install --global
:
webpack
(npm install --global webpack
)webpack-dev-server
(npm install --global webpack-dev-server
)karma
(npm install --global karma-cli
)protractor
(npm install --global protractor
)typings
(npm install --global typings
)typescript
(npm install --global typescript
)fork
this repoclone
your forknpm install
to install all dependenciestypings install
to install necessary typingsnpm run server
to start the dev server in another tabAfter you have installed all dependencies you can now run the app. Run npm run server
to start a local server using webpack-dev-server
which will watch, build (in-memory), and reload for you. The port will be displayed to you as http://0.0.0.0:3000
(or if you prefer IPv6, if you're using express
server, then it's http://[::1]:3000/
).
# development
npm run server
# production
npm run build:prod
npm run server:prod
# development
npm run build:dev
# production
npm run build:prod
npm run watch
npm run test
npm run watch:test
# make sure you have your server running in another terminal
npm run e2e
npm run webdriver:update
npm run webdriver:start
npm run webdriver:start
# in another terminal
npm run e2e:live