Skip to content

Latest commit

 

History

History
121 lines (84 loc) · 3.83 KB

File metadata and controls

121 lines (84 loc) · 3.83 KB

Contributing to Analog

Thank you for your interest in contributing to Analog! We aim to make the contribution process simple and straightforward.

Getting Started

  1. Fork the repository

    • Visit Analog repository

    • Click the "Fork" button in the top right

    • Clone your fork locally:

      git clone https://github.com/YOUR-USERNAME/analog.git
      cd analog
    • Add upstream remote:

      git remote add upstream https://github.com/jeanmeijer/analog.git
  2. Install dependencies:

    bun install
  3. Configure environment variables: Copy the example environment file:

    cp .env.example .env

    Then, open the newly created .env file. You will find default values for DATABASE_URL and BETTER_AUTH_URL. You need to set the following:

    • BETTER_AUTH_SECRET: Generate a secure secret by running openssl rand -hex 32 in your terminal.

  4. Set up Google OAuth:

  1. Set up Microsoft OAuth (optional):
  • MICROSOFT_CLIENT_ID and MICROSOFT_CLIENT_SECRET:
    1. Go to the Microsoft Azure Portal, then navigate to Microsoft Entra ID → App registrations.
    2. Register a new application and set the redirect URI (http://localhost:3000/api/auth/callback/microsoft).
    3. Copy the Application (client) ID and create a new client secret under Certificates & secrets.
    4. Go to API permissions, click + Add a permission, choose Microsoft Graph → Delegated permissions, and add:
      • Calendars.Read, Calendars.ReadWrite, User.Read, offline_access
  1. Set up Google Maps API (optional):
  1. Initialize the application
# Initialize the database
bun run db:push

# Start development server
bun run dev

Making Changes

  1. Create a new branch for your changes

    git checkout -b feature/your-feature
  2. Make your changes and test them locally

  3. Commit your changes using clear conventional commit messages

    git commit -m "feat: add new feature"
  4. Keep your fork up to date

    git fetch upstream
    git merge upstream/main

Pull Request Process

  1. Push changes to your fork

    git push origin feature/your-feature
  2. Visit your fork on GitHub and create a Pull Request

  3. Create a PR with a clear description of your changes

  4. Wait for review and address any feedback

Need Help?

If you have questions or need help, please:

  • Open an issue
  • Comment on the relevant issue or PR

License

By contributing to Analog, you agree that your contributions will be licensed under its MIT License.