Lexical questions was developed for teachers, who wants to get some examples (up to 30) of sentences for their students. For example, you can get sentences with the word "sheep". Also you get some information and examples with this word from cambirdge dictionary.
- First you need to create a virtual environment:
for this you need to use the command -
python -m venv venv
(for Windows),python3 -m venv venv
(for macOS) - Next, you need to activate the virtual environment -
venv\Scripts\Activate.ps1
(for Windows),source venv/bin/activate
(for macOs) - The next step is to install the necessary dependencies -
pip install -r requirements.txt
(for all platforms) - Make migrations -
python manage.py makemigrations
(for Windows) orpython3 manage.py makemigrations
(for macOS) andpython manage.py migrate
(for Windows) orpython3 manage.py migrate
(for macOS) - THIS STEP IS REQUIRED IF YOU WANT TO USE AUTH SYSTEM. Create a superuser -
python manage.py createsuperuser
(for Windows) orpython3 manage.py createsuperuser
(for macOS) - Make application in Reddit api website. Write in .env file your API keys from Reddit, enter secret key for Django app (you can generate it here), and write your email address with app password if you want to use email sending function.
- THIS STEP IS REQUIRED IF YOU WANT TO USE CHANGE THEME OPTION! You need to install node.js and npm. Open
parser
directory and runpython manage.py tailwind start
(for Windows) orpython3 manage.py tailwind start
(for macOS) in seperate terminal (in first terminal you need to run server, in second terminal you need to run tailwind). - Run the server -
python manage.py runserver
(for Windows) orpython3 manage.py runserver
(for macOS)
App running on
http://127.0.0.1:8000/