A Django web app for keeping track of solved questions for easy review.
You only need to provide the problem link, a topic to group problems by, and your solutions to the problem. The app will automatically generate a page for each problems by making GraphQL queries to leetcode/graphql server.
- Python (3.6 or higher)
- pip (Python package manager)
- virtualenv
- Git
-
Clone the Repository
git clone https://github.com/enansaif/flashcards.git -
Create a Virtual Environment
python -m venv .venv -
Activate the Virtual Environment
Activate the virtual environment based on your operating system:
-
On Windows:
.venv\scripts\activate -
On macOS and Linux:
source .venv/bin/activate
-
-
Install Dependencies
Install the required Python packages using pip. Make sure you're in your project directory and that your virtual environment is activated:
pip install -r requirements.txt -
Create a Superuser/Admin (Optional)
To create a superuser account for the Django admin panel, use the following command and follow the prompts:
python manage.py createsuperuser -
Run the Development Server
Start the Django development server with the following command:
python manage.py runserverYour app should now be running locally. You can access it by opening a web browser and navigating to
http://localhost:8000/. -
Access the Admin Panel(Optional)
You can access the Django admin panel by visiting
http://localhost:8000/admin/and logging in with the superuser credentials you created earlier.
If you encounter any issues or have questions, please feel free to open an issue on the GitHub repository.
TY! 🚀