Skip to content

Frontend Setup and Configuration

Prerequisites

  • Node.js (v14 or higher)
  • Git

Installation Steps

  1. Clone the Repository
git clone https://github.com/BidScript/bidscriptfrontend
cd bidscriptfrontend
  1. Install Dependencies
npm install
  1. Environment Variables Create a .env file in the root directory:
NEXTAUTH_SECRET=your_auth_secret
AZURE_STORAGE_CONNECTION_STRING=your_azure_connection_string
DATABASE_URL=your_database_url

Database Setup

Prisma Configuration

  1. Set up the database schema in prisma/schema.prisma
  2. Generate Prisma client:
npx prisma generate
  1. Run migrations:
npx prisma migrate

Development Scripts

Note

The frontend will not run without backend services, which also need to be set up. Click here for Backend Setup. Alternatively, view the Full Setup Guide for a comprehensive setup guide.

Local Development

# Start development server
npm run dev

Production Build

# Create production build
npm run build
# Start production server
npm run start

Testing

# Run all tests
npm run test
# Run tests in watch mode
npm run test:watch