node src/app.js
For testing subdomains locally, use the domain vcap.me:3000
This is a domain that points back to your localhost, allowing you to test subdomains like mango.vcap.me:3000
You can simply use express static file serving mechanism, if it is too simple.
app.use('/_sub/:subdomain', express.static(path.resolve(__dirname, '..', 'spa-app-directory-name')));
If you want to use subdomain in you SPA, simply render app with subdomain & serve.
Generate dhparam:
openssl dhparam -out config/ssl/dhparam.pem 4096
This project is licensed under the MIT License - see the license.md file for details