Coder Social home page Coder Social logo

idbara / sdbayes Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8.51 MB

Sistem Diagnosa Gangguan Kecemasan Tergeneralisasikan dengan metode Bayes

License: MIT License

Python 38.11% JavaScript 3.59% CSS 1.89% HTML 55.40% Dockerfile 0.36% Shell 0.42% SCSS 0.23%
flask python bayes flask-base semantic-ui redis sass

sdbayes's Introduction

Sistem Diagnosa Gangguan Kecemasan Tergeneralisasikan dengan metode Bayes

CircleCI Maintainability python3.x Build Status

this project for my skripsi.

For local development

First step is to generate self-signed certificates. The easiest method is to use mkcert command. Check instructions on how to install mkcert.

mkdir certs && cd $_ && mkcert docker.localhost "*.docker.localhost" && cd ..

There will be two .pem files generated stored in certs folder. This will be used by traefik later on.

Alternatively, you can can use openssl command:

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt

However, this method requires extra step in order for the SSL to work properly in your browser. A well detailed instruction is provided here.

Keep in mind, generating the certificates is a one time process only since website will be hosted in subdomain. Depending on your needs and structure, you can still opt to generate as many certificates as you want, just replace the default domain (docker.localhost) in docker-compose.yml and config-staging.toml. Replace the new 2 named .pem files in the config-staging.toml as well.

You would then need to create a network beforehand:

docker network create sdbayes-local

Run traefik-compose.yml first:

docker-compose -f traefik-compose.yml up -d

Check by visting https://traefik.docker.localhost/dashboard/.

Next is to modify any configuratioin in sdbayes-compose.yml and then run:

docker-compose -f sdbayes-compose.yml up

Having problems?

  • Make sure the database service name is unique.
  • Subdomain name is unique.
  • The network is the same for every new wordpress instance.
Install the dependencies
$ pip install -r requirements.txt
Environment for Production
$ mv example.environment prod.env
Create the database
$ python manage.py recreate_db

atau

$ docker-compose run --rm sdbayes_web sh -c "python manage.py recreate_db"
Other setup (e.g. creating core data in database)
$ python manage.py import_dev

atau

$ docker-compose run --rm sdbayes_web sh -c "python manage.py import_dev"

Running the app

$ source env/bin/activate
$ honcho start -e config.env -f Local

Formatting code

Before you submit changes to flask-base, you may want to autoformat your code with python manage.py format.

Contributing

Contributions are welcome! Please refer to our Code of Conduct for more information.

License

MIT License

sdbayes's People

Contributors

idbara avatar masbars avatar

Watchers

 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.