Skip to content

Conversation

@Raptor399
Copy link
Contributor

It's not good practice to copy dependency files into your own project - case in point: the swagger-ui files. This change adds a swagger-ui-dist dependency to the package.json, which should make VS Code download and install the required swagger-ui files to the "node_modules/swagger-ui/" directory.

To be able to reach those files, the local server now points to the top directory. Two HTML files were moved to keep http://localhost:9000 working as before, and the static directory with all of its duplicate code was deleted.

For local testing purposes, use npm install to download the swagger-ui files before testing.

… of including its files. Run `npm install` to test locally.
@Raptor399 Raptor399 mentioned this pull request Jul 20, 2018
@arjun-g
Copy link
Owner

arjun-g commented Aug 3, 2018

There is little problem with this change. The node_modules folders is not marked as static folder in express. Anyhow I am merging it and will fix it from my side.

@arjun-g arjun-g merged commit 62ad2e1 into arjun-g:master Aug 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants