-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
garotm edited this page Nov 29, 2024
·
1 revision
Welcome to fleXRP! This guide will help you set up your development environment and make your first contribution to the project.
- Python 3.11+
- Git
- Docker (optional, but recommended)
- A GitHub account
- Visit fleXRP Repository
- Click the "Fork" button in the top-right corner
- Select your account as the destination
git clone https://github.com/[your-username]/fleXRP.git
cd fleXRP# Create virtual environment
python -m venv venv
# Activate virtual environment
# On Unix/macOS:
source venv/bin/activate
# On Windows:
.\venv\Scripts\activate# Install project dependencies
pip install -r requirements.txt
# Install development dependencies
pip install -r requirements-dev.txtgit remote add upstream https://github.com/fleXRPL/fleXRP.gitpre-commit installfleXRP/
├── src/
│ ├── api/ # API implementation
│ │ ├── routes/ # API routes
│ │ └── templates/ # HTML templates
│ ├── core/ # Core functionality
│ └── services/ # Business logic services
├── tests/ # Test suite
├── docs/ # Documentation
└── docker/ # Docker configuration
# Sync with upstream
git fetch upstream
git checkout main
git merge upstream/main
# Create feature branch
git checkout -b feature/your-feature-name- Write your code
- Add tests
- Update documentation
- Run local tests
# Stage changes
git add .
# Commit with meaningful message
git commit -m "feat: add new feature"- Push to your fork
- Create PR on GitHub
- Wait for review
- Make requested changes if needed
# Set up environment variables
cp .env.example .env
# Edit .env with your settings
# Run the application
flask run# Run all tests
pytest
# Run specific test file
pytest tests/test_specific.py
# Run with coverage
pytest --cov=src tests/# Build container
docker build -t flexrp .
# Run container
docker run -p 5000:5000 flexrp# Create migration
flask db migrate -m "description"
# Apply migration
flask db upgrade# Format code
black src/
# Check types
mypy src/
# Run linter
flake8 src/- Check the logs:
tail -f logs/flexrp.log - Enable debug mode:
export FLASK_DEBUG=1 - Use debugger:
pytest --pdb
- Review Code Standards
- Read Testing Guide
- Find an issue to work on
- Join project discussions
This documentation is maintained by the fleXRP team.