1.0.0 • Published 4 years ago

formbuilder-ssr v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

Getting Started

This is a very simple Node application that uses the Express framework. It is designed to work well with Visual Studio Code and to be easily deployed to Azure App Service, Azure's fully-managed Platform as a Service (PaaS) that let's you deploy and scale web, mobile, and API apps.

Running the Application

After cloning the repository, install the necessary dependencies and then run the application:

npm install
npm start

By default, the server listens on port 3000, so point your favorite browser to http://localhost:3000.

In VS Code, simply press F5 to launch the application in debug mode. Set a breakpoint and refresh the page to hit the breakpoint. From there, inspect variables, set watches, browse the call stack, and more. You can find more information about building and debugging Node applications, please see the VS Code documentation.

Deploy to the Cloud

When you first open this folder in VS Code, you'll be prompted to install the Azure App Service extension.

The App Service extension lets you quickly quickly create sites, deploy them, view logs, and even set environment variables (such as a Connection String), right from within VS Code. For more information, see the App Service Walkthrough.

Shell script (Post deployment)

Run the following post deployment.

apt-get update && apt-get install -y gnupg libgconf-2-4 wget && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && apt-get update && apt-get install -y google-chrome-unstable --no-install-recommends

Additional Documentation

More information on building and deploying Node applications to Azure can be found on the Node Developer Center.

Contributing

This sample's code is hosted on GitHub: https://github.com/microsoft/vscode-tas-express.

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

License

MIT