https://github.com/stealjs/quick-start
StealJS quick start app
https://github.com/stealjs/quick-start
stealjs
Last synced: 2 months ago
JSON representation
StealJS quick start app
- Host: GitHub
- URL: https://github.com/stealjs/quick-start
- Owner: stealjs
- License: mit
- Created: 2015-02-03T23:23:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-05-04T22:52:27.000Z (about 5 years ago)
- Last Synced: 2025-01-21T03:43:19.435Z (4 months ago)
- Topics: stealjs
- Language: HTML
- Homepage: https://stealjs.com/docs/StealJS.quick-start.html
- Size: 73.2 KB
- Stars: 1
- Watchers: 10
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# StealJS Quick Start
This repo is the result of following the step-by-step instructions in the [StealJS Quick Start Guide](https://stealjs.com/docs/StealJS.quick-start.html). You can follow that guide to create this example app from scratch.
## Instructions
Prerequisites:
- [Install Node.js and npm](https://docs.npmjs.com/getting-started/installing-node).
- Set up a web server. If you don’t have one, you can install this simple command-line [http-server](https://www.npmjs.com/package/http-server).### Clone
Clone the repo.
```shell
git clone [email protected]:stealjs/quick-start.git
```### Install
Install Node modules
```shell
cd quick-start
npm install
```### Build
Run the following command to create a new folder in the project called `dist`.
```shell
npm run build
```The `dist` folder contains everything needed to run your app in production.
### Serve
Spin up your web server or run `http-server`:
```shell
http-server
```Open file `http://localhost:8080/index.html` in browser.
Open the Network panel in Developer Tools and you should see only two JavaScript files. The steal-tools grunt task builds a graph of the required files, minifies and concatenates all the scripts into `main.js`.
