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

https://github.com/diwashbhattarai999/vendo-backend

A robust and scalable backend for a SaaS platform, built with modern technologies to support secure and efficient API interactions.
https://github.com/diwashbhattarai999/vendo-backend

api backend express husky lint-staged neon nodejs postgresql prettier prisma saas typescript

Last synced: 2 months ago
JSON representation

A robust and scalable backend for a SaaS platform, built with modern technologies to support secure and efficient API interactions.

Awesome Lists containing this project

README

        

# Vendo Backend

Backend for Vendo, a SaaS platform. Built with Node.js, Express, TypeScript, Prisma, and PostgreSQL.


>
> ### 🚧 Work in Progress
>


## 🚀 Features

- **User Authentication**: Secure JWT-based authentication.

## 🛠 Tech Stack

- **Backend**: Node.js, Express, TypeScript
- **Database**: PostgreSQL, Prisma ORM
- **Authentication**: JSON Web Tokens (JWT)
- **Deployment**: Docker
- **Package Manager**: pnpm

## 📦 Installation & Setup

### Prerequisites

- **Node.js** `>=18.0.0`
- **pnpm** `>=9.0.0`
- **PostgreSQL** `>=14.0`
- **Docker** (optional, for containerized setup)

### Steps

1. **Clone the repository:**

```sh
git clone https://github.com/diwashbhattarai999/vendo-backend.git
cd vendo-backend
```

2. **Install dependencies using pnpm:**

```sh
pnpm install
```

3. **Set up environment variables:**
Copy `.env.example` to `.env` and configure the values.

```sh
cp .env.example .env
```

4. **Run database migrations:**

```sh
pnpm db:migrate
```

5. **Start the development server:**

```sh
pnpm dev
```

6. **Build for production:**

```sh
pnpm build
```

7. **Start production server:**
```sh
pnpm start
```

## 🐳 Docker Setup

Run the backend using Docker:

```sh
pnpm docker:compose:dev
```

Stop the containers:

```sh
pnpm docker:compose:stop
```

## 📜 License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## 🤝 Contributing

We welcome contributions! Please follow the standard Git flow:

1. Fork the repository
2. Create a feature branch
3. Commit your changes
4. Push to your fork
5. Create a pull request

For more details, refer to `CONTRIBUTING.md`.

## 🔗 Links

- **Repository**: [GitHub](https://github.com/diwashbhattarai999/vendo-backend)
- **Issues**: [Report a bug](https://github.com/diwashbhattarai999/vendo-backend/issues)
- **Author**: [Diwash Bhattarai](https://diwashb.me)