Code Monkey home page Code Monkey logo

node-todo's Introduction

Azure Web Apps Node.js Todo Sample

Quick demo on how to run a Node.js App on Azure

Important pieces

web.config

This file contains the info to tell us which file to start (in this case, bin/www)

.deployment

This file tells us which file contains the deployment commands

deploy.cmd

This file will run npm install for us when we deploy to the Azure Web App

Set up on Azure

  1. Fork this repo
  2. Create a Web App
  3. Add DB connection info as App Settings
    • PGUSER
    • PGPASSWORD
    • PGDATABASE
    • PGSERVER
  4. Set up GitHub deployment
    1. Click on Deployment Options
    2. Choose GitHub
    3. Select the forked repo
    4. Click on Deployment Options again and wait for it to complete
  5. Visit home page

Develop and run locally

  1. Clone this repo
  2. Set up env variables
    • PGUSER
    • PGPASSWORD
    • PGDATABASE
    • PGSERVER
  3. Run npm install
  4. Run npm start

If you want to modify the server code, you'll need to run npm run build from the root directory

If you want to modify the client library, you'll need to navigate to the client directory and run npm run build

LICENSE

MIT

node-todo's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-todo's Issues

Not running on Linux web app

Hi Team,
Its no where mentioned in README.md document to create Web app with Windows App service plan. I have talked with Azure Support Team and they told me about Web app updates. So this code will not work for Web app having Linux app service plan. If someone needs to run it on Linux web app, it will need deploy.sh.
Also there is no need to have node_modules folder, if instructions says on running locally we need to npm install command.

  • Please update README.md
  • Remove node_modules folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.