Giter Site home page Giter Site logo

ase-assignment-1's Introduction

Bedrock-a-Party

Hi!

If you read this file it means that you are developing your (first?) microservice using Flask and Flakon!

Now, let's start with a quick explanation of this skeleton:

Directory structure

This is the structure of your first microservice:

bedrock_a_party
├── app.py
├── __init__.py
├── tests
│   ├── __init__.py
│   └── test_home.py
└── views
    ├── home.py
    ├── __init__.py

As you can see, we have bedrock_a_party, that is the service you are going to develop. If you want, you can change the name of it (it does not generate problems).

Setup the environment

To setup the environment, you should follow these steps:

  1. Open the project in your IDE.
  2. From IDE terminal, or normal Ubuntu/MacOS terminal execute the command virtualenv venv inside project root.
  3. Now, you have to activate it, by executing the command source venv/bin/activate.
  4. You have to install all requirements, let's do that with pip install -r requirements.txt.

Perfect! now you can run flask application!

WARNING: each time that you open a new terminal session you have to execute the step 3.

Run the application

If you want to run the application, you can use the script run.sh by typing bash run.sh, or you can set these environment variables:

FLASK_DEBUG=1
FLASK_ENV=development
FLASK_APP=bedrock_a_party

That's all! :)

ase-assignment-1's People

Contributors

yitbarek123 avatar

Watchers

 avatar

ase-assignment-1's Issues

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.