Code Monkey home page Code Monkey logo

greenhouse_server's Introduction

Greenhouse server

Сервер для умной теплицы

Run


Run with docker

0.) Install docker

1.) Clone repo

git clone https://github.com/DaniinXorchenabo/greenhouse_server.git greenhouse_server
cd greenhouse_server

2.) Create .env file in root of project (see example.env file).

  • Вы должны обязательно создать новый файл, а не переименовывать старый! Это очень важно!

  • Войдите в новый файл и заполните ВСЕ пропущенные поля!!! Впишите свои данные в строчки, где после = нет значений. Между названием переменной, знаком = и значением не должно быть пробелов!!! Это может иметь значение в некоторых системах!

  • В строчке с переменной также не должно быть комментариев (Любой текст после символа #) Это также может быть критично для некоторых систем!!!

3.) Start docker containers

docker-compose up -d

4.) Check it: https://<host from .env file>:<port from .env file>, for example, https://localhost:8000

Run with local python

1.) Clone repo

git clone https://github.com/DaniinXorchenabo/greenhouse_server.git greenhouse_server
cd greenhouse_server

2.) Create .env file in root of project (see example.env file). Change connect postgres params for success connection.

  • Вы должны обязательно создать новый файл, а не переименовывать старый! Это очень важно!

  • Войдите в новый файл и заполните ВСЕ пропущенные поля!!! Впишите свои данные в строчки, где после = нет значений. Между названием переменной, знаком = и значением не должно быть пробелов!!! Это может иметь значение в некоторых системах!

  • В строчке с переменной также не должно быть комментариев (Любой текст после символа #) Это также может быть критично для некоторых систем!!!

3.) Install requirements

pip install -r app/requirements/dev/requirements.txt

4.) Run application

python app/main.py

or 4.) Ran server with uvicorn

uvicorn main:app --reload --host 0.0.0.0 --port 8000

5.) Check it: https://localhost:8000

Build

docker-compose -f build-docker-compose.yml build

Administration

PgAdmin

You need in run with docker-compose for in-build PgAdmin

Check it: http://localhost:8080/

image

login and password you can find in .env file

image

PgAdmin help you administration the database

You can learn more this: https://linuxhint.com/postgresql_docker/

Documentation


Check it: /docs http://localhost:8040/docs (You need in changeing 8040 to your port)

image

image

It was genereted by fast-api framework, use openAPI standart

Or, You can use /redoc http://localhost:8040/redoc

image

It was genereted by fast-api framework too

greenhouse_server's People

Contributors

daniinxorchenabo avatar

Stargazers

Sergey avatar  avatar mustafa avatar

Watchers

James Cloos avatar  avatar

greenhouse_server'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.