Berry React
v3.9.1
v3.9.1
  • Introduction
  • Package
  • Getting Started
    • Pre-requisites
    • Quick Start
    • Mock backend
    • Deployment
    • Licensing
  • Setup
    • Seed
    • To Existing Project
  • Folder Structure
  • State Management
  • Multi Language
  • Authentication
    • AWS Cognito
    • Auth0
    • Firebase
  • API Calls
  • Routing
    • New Menu
    • Login as First Page
    • Skip Login
      • VITE
      • NextJS
    • Menu from the backend
    • Remove menu render via backend
  • Theme
    • Configuration
    • Presets
    • Style
      • Color
      • Typography
      • Overrides
      • Shadows
    • Layouts
    • Logo
  • How to
    • Remove eslint
    • Remove prettier
  • Components
    • Avatar
    • AnimateButton
    • Accordion
    • Breadcrumbs
    • Chip
    • ImageList
    • MainCard
    • Transitions
    • SubCard
  • Dependencies
    • Vite js
    • Next js
  • Support
    • Roadmap
    • Changelog
    • FAQ
  • 🎺About - Berry Remix
  • Berry Eco System
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started

Mock backend

Last updated 10 months ago

Was this helpful?

We use a mock backend to provide necessary data and handle JWT authentication as well. This mock backend is shared across various apps for consistent data handling. You can find the mock backend server in the following GitHub repository:

  • GitHub Repo:

The provided code of Berry directly uses a deployed URL. You can verify this by observing the network tab, where you'll see this URL being accessed at multiple points.

  • Deployed URL:

Setup Local backend server

If you intend to avoid live server and wanted to use same in local, follow below guidelines.

  1. Clone GitHub repo to your machine:

    git clone https://github.com/phoenixcoded20/mock-data-api-nextjs.git
  2. Install and Run:

    npm install
    npm run dev
  3. This will start backend in local at 3010 ports.

  4. Replace the API_URL key in .env at root location of Berry package:

    • VITE:

      VITE_APP_API_URL: http://localhost:3010/
    • NEXTJS:

      REACT_APP_API_URL: http://localhost:3010/

https://github.com/phoenixcoded20/mock-data-api-nextjs
https://mock-data-api-nextjs.vercel.app/