Update local dev steps (fixes #114)

This commit is contained in:
Roman Hotsiy 2016-09-20 18:28:42 -04:00 committed by GitHub
parent 6a5e03cab9
commit 6cc525e594

View File

@ -126,16 +126,17 @@ Redoc.init('http://petstore.swagger.io/v2/swagger.json', {
----------- -----------
## Development ## Development
#### Running local dev-server #### Running local dev-server
1. Clone repository - Clone repository
`git clone https://github.com/Rebilly/ReDoc.git` `git clone https://github.com/Rebilly/ReDoc.git`
2. Go to the project folder - Go to the project folder
`cd ReDoc` `cd ReDoc`
3. Install node modules and front-end dependencies - Install dependencies
`npm install`
- *(Temporary step, will be obsolete after fixing #97)* Compile CSS
```bash
npm run build:sass
``` ```
npm install - _(optional)_ Replace `demo/swagger.json` with your own schema
npm run jspm-install - Start the server
```
4. _(optional)_ Replace `demo/swagger.json` with your own schema
5. Start the server
`npm start` `npm start`
6. Open `http://localhost:9000` - Open `http://localhost:9000`