Git Product home page Git Product logo

itu-cogniteam's Introduction

Požiadavky

  • Python3, NodeJS 16, PostgreSQL, Android Studio

Databáza

Tabuľky sa inicializujú do špecifikovanej databázy automaticky pri prvom spustení backendu

Spustenie - Backend

Vytvorenie virtuálneho prostredia

cd backend
python3 -m venv venv

Inštalácia balíčkov

source venv/bin/activate
pip install -r requirements.txt

Nastavenie konfiguračných premenných

#backend/config.py
DATABASE_URI = "postgresql://username:password@host:port/db"
SECRET_KEY = "changethis"

Nastavenie HTTPS

#backend/run_app.py
from app import create_app

if __name__ == "__main__":
    app = create_app()
    app.run(host = "localhost", debug = False, port = 8000, ssl_context=(
        '/cesta/ku/certifikat.pem', 
        '/cesta/ku/certifikat-key.pem'
    ))

Spustenie

source venv/bin/activate
python run_app.py

Spustenie - Frontend Web

Inštalácia balíčkov

cd frontend
npm install

Nastavenie HTTPS

//frontend/nuxt.config.js
import fs from "fs"
import path from "path"

export default {
    server: {
        https: {
            key: fs.readFileSync("/cesta/ku/certifikat-key.pem"),
            cert: fs.readFileSync("/cesta/ku/certifikat.pem")
        },
    },
    ...
    ...
}

Preklad a spustenie

npm run build
npm run start

Spustenie - Frontend Mobil

Otvoriť zložku frontend-android v Android Studio

itu-cogniteam's People

Contributors

noxi123 avatar b3lix avatar

Watchers

Michal Šlesár avatar  avatar

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.