Giter VIP home page Giter VIP logo

falcon-rest-api-pattern's Introduction

I speak to computers too ๐Ÿ‘‹

package main

import "fmt"

// I is about me
type I struct {
	am       string
	love     []string
	workWith []string
	aspire   string
}

func main() {
	me := I{
		am:       "Naren Arya",
		love:     []string{"Software", "Books", "Travel"},
		workWith: []string{"Python 3", "JavaScript ES6", "React", "Go", "AWS"},
		aspire:   "To make this world a better and safe place with technology",
	}
	fmt.Println(me)
}

falcon-rest-api-pattern's People

Contributors

narenaryan avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

falcon-rest-api-pattern's Issues

How do I read environment variables and stop gunicorn if not found

Currently I am doing the following:

path = os.environ.get('DATABASE_PATH')
if path==None:
    print "SET DATABASE_PATH, using --env key=value"   
    sys.exit()

api = falcon.API(middleware=[cors.middleware])

And when I run, I run as follows:
gunicorn app:api --env "DATABASE_PATH=some path"

However, if I don't give the path, the gunicorn server does not stop on it's own but keeps running like the following:

screen shot 2016-08-31 at 8 21 02 pm

How do I stop the server?

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.