Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nielse63/alpaca-firebase

Firebase implementation for running Alpaca scripts
https://github.com/nielse63/alpaca-firebase

Last synced: 11 days ago
JSON representation

Firebase implementation for running Alpaca scripts

Awesome Lists containing this project

README

        

# alpaca-firebase

> Algotrading bot example using TypeScript

[Learn how to create your first algotrading bot on Medium.](https://medium.com/@ErikKyleNielsen/write-your-first-typescript-algotrading-bot-8194dfe60e5f)

## Prerequisites

Node `v22.5.1` and a global installation of `firebase-tools` are required to work on this project:

```bash
nvm install v22.5.1
npm i -g firebase-tools
```

## Installation

```bash
git clone https://github.com/nielse63/alpaca-firebase.git
cd alpaca-firebase
nvm use
npm ci
```

## Usage

| Command | Description |
| ---------------- | ---------------------------------- |
| `npm run serve` | Run the firebase functions locally |
| `npm run deploy` | Deploy functions to production |

### Development

| Command | Description |
| --------------- | ------------------------------- |
| `npm run lint` | Lint and format source files |
| `npm run build` | Generate type declaration files |

### Testing

```bash
npm test

# with coverage
npm test -- --coverage
```

### Creating a new release

```bash
gh release create
npm version --no-git-tag-version from-git
git add .
git commit --no-edit --amend
```