Development
Learn how to contribute to Nile Auth development
Getting Started
Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- Git
- PostgreSQL (for local development)
Setting Up the Development Environment
- Clone the repository:
- Install dependencies:
- Set up environment variables:
Project Structure
Development Workflow
Running Locally
- Start the development server:
- Run tests:
Code Style
We use the following tools for code quality:
- ESLint for linting
- Prettier for code formatting
- TypeScript for type checking
Making Changes
- Create a new branch:
- Make your changes and commit:
- Push your changes:
Pull Request Process
- Update documentation for any new features
- Ensure all tests pass
- Update the changelog
- Submit your PR with a clear description
Documentation
Adding New Documentation
- Create new MDX files in the appropriate directory
- Update the navigation in
mint.json
- Include code examples and explanations
Documentation Style Guide
- Use clear, concise language
- Include code examples
- Add proper headings and sections
- Link to related topics
Best Practices
- Write clean, maintainable code
- Add unit tests for new features
- Keep components small and focused
- Document your code thoroughly