Skip to content

sparrowapp-dev/sparrow-app

Repository files navigation

logo

One-stop API management tool

screenshot

TypeScript Nest Mongoose Rust Tauri Svelte Vite
Quality Gate Status

πŸ“‹ Table of Contents

  1. 🐦 What is Sparrow ?
  2. πŸ”¨ Installation
  3. πŸ‘¨β€πŸ’» Recommended IDE Setup
  4. ❀️ How to Contribute ?
  5. πŸ“¨ Subscribe to our Newsletter

Sparrow is your next go-to API development buddy which can help you test, debug, and distribute better APIs while collaborating with your colleagues and making you a better programmer.

Prerequisite:

To install this project, you will need to have the following installed on your machine :

Docker NODE Yarn Rust

Check if you already have the prerequisites installed by running the below commands in your terminal

  1. Node: node -v
  2. Yarn: yarn check
  3. Rust: rustc --version
  4. Docker(Optional): docker --version

Install the required dependencies by heading over to the links below,

  1. Node
  2. Tauri
  3. Yarn
  4. Docker

Installation Steps:

-> Required Steps

# Clone the repo
git clone https://github.com/sparrowapp-dev/sparrow-app

# Move into the project root
cd sparrow-app

# Install dependencies and Husky hooks
yarn

# Copy desktop app .env.example to .env
cp apps/@sparrow-desktop/.env.example apps/@sparrow-desktop/.env

# Copy web app .env.example to .env
cp apps/@sparrow-web/.env.example apps/@sparrow-web/.env

You can customize the environment variables in .env if required. Refer the Environment Variable Guide to understand more.

After completing the required steps of setting up the repository and env, follow one of the below methods to setup the required services:

-> [METHOD 1] Docker Method

  • To install all services(mongo + kafka + api server + auth server + proxy server) as docker containers, and start the web app on port 1422, run:

    yarn docker:up

  • To install individual services, run:

      yarn docker:<SERVICE NAME>
    
    • yarn docker:mongo - Runs only mongo in a docker container
    • yarn docker:kafka - Runs only kafka in a docker container
    • yarn docker:sparrow-api - Runs only the api server
    • yarn docker:sparrow-auth - Runs only the auth service
    • yarn docker:sparrow-proxy - Runs only the proxy service

    Points to remember:

    • Running yarn docker:up will also start web app on localhost:1422. You can comment it out in docker compose if you want to run the app locally.

-> [METHOD 2] Non-Docker Method

  • Go to following repositories of individual services and check their README in order to setup them on your local.

    Points to remember:

    • Mongo and Kafka setup is already included in Sparrow API setup.

-> Run The App Locally

# Run the desktop app in dev mode
yarn desktop-start

# Run the web app in dev mode
yarn web-start

The above command will start the app/web-app in development mode and watch for changes on local.

Default User for Login:

Sparrow creates a default user to help you get started quickly and easily.

Login Credentials:

Click here to Self Host Sparrow.

VS Code + Svelte + Tauri + rust-analyzer.

You can checkout Contributing Guidelines

Subscribe to our newsletter by applying here!