Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌟 New: Adds basic server boilerplate that supports watching #34

Closed
wants to merge 2 commits into from

Conversation

aendra-rininsland
Copy link
Member

@aendra-rininsland aendra-rininsland commented Aug 3, 2016

This adds a really basic Koa 2 app that serves out the dist/ folder on port 5555 upon $ npm run server.

If NODE_ENV is set to development, it uses BrowserSync to monitor the dist/ folder, and uses a customised version of the gulp watch task (gulp watch-server) to monitor the client/ folder, serving out built versions of client/ upon change.

It also adds a Procfile, as well as updates package.json to build client/ and transpile server/ during the npm postinstall hook. This enables it to be easily pushed to Heroku. 🎉

Lastly, it consolidates the two optionalDependency sections of package.json that were added in #19.

@kavanagh
Copy link
Member

kavanagh commented Aug 3, 2016

Now we need port the build-pages and html task from gulp to the koa app: i.e get server to create the HTML pages, binding the contents of /config to the the /views and something to save them as static

@aendra-rininsland
Copy link
Member Author

aendra-rininsland commented Aug 5, 2016

Have pushed updated version that replaces practically all Gulp functionality with a Koa 2 server.

Still @TODO before merging:

@aendra-rininsland
Copy link
Member Author

This is hopelessly outdated and won't ever make it into Starter Kit given the project's roadmap. Leaving branch in case someone wishes to port it elsewhere, but closing otherwise.

@aendra-rininsland aendra-rininsland deleted the add-microservice branch May 28, 2019 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants