Bit with NodeJS

Create a new Node workspace:

$bit
Copiedcopy

Alternatively, start from our NodeJS starter to stitch a micro-service architecture.

Create app

You can create a NodeJS app using our basic NodeJS app type. To create a NodeJS app, run the following command:

$bit
Copiedcopy

You can find more information about building apps in the NodeJS app section.

Create backend services

Create backend services with HMR using our NodeJS server app types. To create a GraphQL server, run the following command:

$bit
Copiedcopy

You can find more information about creating Express, NodeJS, and GraphQL servers in the backend services docs section.

Create platforms

Platforms are used to stitch backend services into a unified platform. Run the following command to create a service-oriented platform:

$bit
Copiedcopy

Learn more about using Platforms in the Platform docs section.

Create module

Create a NodeJS module by running the following command:

$bit
Copiedcopy

You can find more information about creating modules in the NodeJS Modules docs section.

Create entity

Entities are used to define data structures and their behavior, and reuse them in your backends and frontends:

$bit
Copiedcopy

Learn more about creating entities in the Entities docs section.

Release components

You can release your components by running the following commands:

$bit
Copiedcopy

Sync the changes with your remote server:

$bit
Copiedcopy

In case you are looking to build with your own CI, automate these commands from a CI yourself or use our scripts to automate the process.

What's next