Skip to main content

Installation

Getting started with mockBee is easy! ๐Ÿ„โ€โ™‚๏ธ

Installing the mockbee template#

Approach 1: mockBee 2.0: CRA Templates#

Now you can use the CRA templates to install your favourite mockbee project directly!

npx create-react-app my-app --template mockbee-[project-name-here]

Available templates:

Example command (say you want to install e-commerce template):

npx create-react-app my-app --template mockbee-ecommerce

Approach 2: By using mock-backend starter#

Run the following command in your terminal.

npx create-mock-backend// oryarn create mock-backend

That's it! Wait for the installation to be finished follow the instructions in the terminal.

Select the name of your app, your favourite mockBee template and let us handle the rest for you!

Running the App#

Head over to your project and run,

npm start// oryarn start

This should run your react app on localhost:3000!

Note: If you are running this application for the first time, make sure that you have the updated dependencies by running,

npm install// oryarn