Skip to content
D
Documentation

System requirements

reference
2 min readUpdated

Prepare Conduit for local development, start its development server, and adjust the local port or API address when needed. The project uses Create React App. Use these steps for local work; handle deployment separately.

System requirements

Choose the local task you need to complete.

If you need to…Go to
Prepare the project before starting itBefore you start
Start the local development serverRun the application locally
Change the local port or API addressConfigure local runtime settings
Review setup problemsWhen local setup does not work
Create a production bundleNext steps
Find related application referencesGetting help

Before you start

Have a local copy of the repository before you run the setup commands. Use npm install to install dependencies and npm start to start the local server.

Have or knowWhy it matters
A local copy of the repositoryThe setup commands run from the project.
The npm install commandIt installs the project's required dependencies.
The npm start commandIt starts the local development server.

When these items are ready, continue to Run the application locally.

Run the application locally

Use this procedure when you want to start the Conduit development server on your computer.

Prerequisites

  • You have a local copy of the repository.

Steps

  1. Open a terminal in the project folder.
  2. Enter npm install in the terminal and press Enter.
  3. Run npm start.

The start command uses port 4100 rather than React's standard port 3000.

Result: The local development server starts on port 4100.

To change the port or API address, continue to Configure local runtime settings.

Configure local runtime settings

Use the local settings when the default port or API address does not match your setup.

Prerequisites

  • You have a local copy of the repository.

Steps

  1. Choose the setting you need:

    If you need to…Change…
    Use a different local web-server portSet PORT in a root .env file.
    Use a different API serverChange the API URL in the project configuration file.

The API server is https://conduit.productionready.io/api.

Result: The local configuration contains the port or API address you selected.

If startup still does not work, review When local setup does not work.

When local setup does not work

Local setup has three relevant areas: dependencies, the local server, and the API connection.

AreaRelevant setting
Dependenciesnpm install installs dependencies.
Local servernpm start starts the local server.
API connectionThe API address is in the project configuration file.

After reviewing the relevant setting, return to Run the application locally.

Next steps

After local setup, create a production bundle with npm run build. For the API specification and other related application references, continue to Getting help.

Was this page helpful?

Download as PDF
System requirements — Conduit (React)