Skip to content

⛓️ Website for generating text made with Django Rest Framework and React

License

Notifications You must be signed in to change notification settings

NikOneZ1/MarkovChainText

Repository files navigation

Markov chain text generator

Website for generating text made with Django REST Framework and React.

How to install

Using docker

Set setings for the postgresql database

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'postgres',
        'USER': 'postgres',
        'HOST': 'db',
        'PORT': 5432
    }
}

Run command

docker-compose up

Using Python and Node.js

Install all dependencies

pip install -r requirements.txt

Set setings for the postgresql database

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': "DATABASE_NAME",
        'USER': "DATABASE_USER",
        'PASSWORD': "DATABASE_USER_PASSWORD",
        'HOST': 'localhost',
        'PORT': ''
    }
}

Install node.js and npm/yarn

Run commands

cd markov_chain_frontend
yarn install
yarn build

Technologies used

  • Python 3.10
  • Django 4.0
  • Django REST Framework 3.13.1
  • PostgreSQL
  • React
  • Docker

About

⛓️ Website for generating text made with Django Rest Framework and React

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published