Welcome to the documentation for the Askanjlee This document will guide you through setting up the application, installing its dependencies, and running it. Additionally, you'll find a brief description of the project's purpose.
Follow these steps to set up and run the application on your local machine.
Before you begin, ensure you have the following installed on your system:
-
Clone this repository to your local machine using the following command:
git clone https://github.com/your-username/project-name.git
-
Navigate to project directory
cd project-name
-
Run Npm install
npm install
- Run
npm start
The backend system is organized into the following directory structure:
-
/server
: Contains the main application code.app.py
: Contains the main application logic and routes for handling different endpoints.config.py
: Contains configuration settings for the application.models.py
: Contains data models and database interaction logic.requirements.txt
: Lists all the Python libraries and packages required to run the application.
-
README.md
: Contains documentation and instructions for setting up and running the application.
/Login
(POST): Login the user with session enabled for that particular user./@me
(GET): Fetches details of a specific user based on session id./courses
(GET): Fetches a list of courses./courses/<course_id>
(GET): Fetches details of a specific course based oncourse_id
./registration
(POST): Enters the details of a user into the database/logout
(GET): Ends the session of the user.
SECRET_KEY
: Secret key for session management.SQLALCHEMY_DATABASE_URI
: URI for connecting to the PostgreSQL database.
DB_HOST
: PostgreSQL host address.DB_PORT
: PostgreSQL port.DB_NAME
: Name of the database.DB_USER
: Database username.DB_PASSWORD
: Database password.
REDIS_HOST
: Redis host address.REDIS_PORT
: Redis port.
- Defines classes representing the data entities (e.g., User, Course).
- Includes methods for querying, creating, updating, and deleting records in the database.
- Lists all the Python libraries and packages required to run the application. Includes Flask, SQLAlchemy, psycopg2 (for PostgreSQL), redis, and any other dependencies.
The Aim of this project is to provide courses to students in field of Mathematics, Science , STEM related content and Olympiads.