Database Seeding - Wapi documentation

Top

Wapi documentation

## Chat, collaborate, and create teams effortlessly with Wapi

#### Welcome to WAPI!

Get an AI summary of this page
ChatGPT Gemini Grok Perplexity

### Overview

Database seeding is the process of populating a database with an initial set of data. In Wapi, we use seeders to set up default configurations required for the platform to function correctly after a fresh installation.

The seeding process populates:

- - Default Settings: Initial application settings.
- - Landing Page: Default content for the public landing page.
- - Roles & Permissions: Standard user roles (Admin, etc.) and access rights.
- - Default Admin Account: A root administrator user to get you started.
- - Pages: Core system pages (Privacy Policy, Terms, etc.).
- - Currency: Available system currencies.
- - Admin Templates: Pre-configured templates for the admin dashboard.
- - AI Models: Initial configuration for AI capabilities.

### How to Run Seeding

To seed all data to the database, navigate to your backend directory and run the following command:

- npm run seed

Note: Ensure your `.env` file is correctly configured with your MongoDB connection string before running the seed command.

## What's Next?

Let’s get started — your team’s new home is Wapi Chat!

### Prerequisite

Required tools and setup

### Wapi Installation

Setup guide and configuration

### Deployment

Launch, host, and manage