- Introduction
- Forking the Repository
- Cloning the Repository
- Setting Up the Environment
- Installing Dependencies
- Running the Application
- Running Tests
- Contributing
This project is a FastAPI-based service for managing user registrations and logins. It uses Pydantic for data validation and MongoDB for data storage.
- Go to the repository.
- Click the
Forkbutton in the top-right corner of the page. - Select your GitHub account to fork the repository.
- Open your terminal.
- Clone the forked repository to your local machine:
git clone https://github.com/<your-username>/dis_service.git
- Navigate to the project directory:
cd dis_service
- Create a virtual environment:
python -m venv .venv
- Activate the virtual environment:
- On Windows:
.venv\Scripts\activate
- On macOS/Linux:
source .venv/bin/activate
- On Windows:
- Install the required dependencies:
pip install -r requirements.txt
- Start the FastAPI application:
uvicorn app.main:app --reload
- Open your browser and navigate to
http://127.0.0.1:8000/docsto access the API documentation.
- Run the tests using
pytest:pytest
- Create a new branch for your feature or bugfix:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m "Add your commit message" - Push your changes to your forked repository:
git push origin feature/your-feature-name
- Create a pull request from your forked repository to the main repository.