1.0.0-rc.23 • Published 11 months ago

@bodiless/backend v1.0.0-rc.23

Weekly downloads
111
License
Apache-2.0
Repository
-
Last release
11 months ago

@bodiless/backend

Overview

The backend-server (responsible for saving content to json files) will be listening on http://localhost:8006. It is also reachable via proxy from the test site at http://localhost:8005/___backend. However, you should never need to access this directly.

Usage

You can start backend server by running node ./path/to/server.js. Backend server expects next environment variables to be available in the node proccess:

  • APP_GIT_PATH - Location of a folder within the git repository. Defaults to . ( current working directory ).
  • BODILESS_BACKEND_DATA_FILE_PATH - Where to write the content json files. Defaults to ./src/data.
  • BODILESS_BACKEND_STATIC_PATH - Where to write uploaded static assets. Defaults to ./static.
  • BODILESS_BACKEND_COMMIT_ENABLED - Whether or not commits are enabled. Defaults to 0 for production and development environments and 1 for test/* and changeset/* branches.
  • BODILESS_BACKEND_EXTENDED_LOGGING_ENABLED - Whether or not extended logging is enabled. Defaults to 0. Please note that this feature requires morgan and morgan-body packages. If you plan to use this feature outside of monorepo, please ensure those dependencies are installed.

Please note that BODILESS_BACKEND_DATA_FILE_PATH, BODILESS_BACKEND_STATIC_PATH and BODILESS_BACKEND_COMMIT_ENABLED are defined in @bodiless/gatsby-theme-bodiless by default.

Web API

Backend package provides a set of web API endpoints to allow developers working on git workflow. As a private API, not all routes are currently documented.

  • changes

    Get changes between branchs.

    Request

    • Method: GET
    • Parameters:
      • N/A

    Example:

    curl --request GET --url http://localhost:8006/___backend/changes
  • changes/conflicts

    Find conflicts between origin main and upstream branch.

    Request

    • Method: GET
    • Parameters:
      • N/A

Example:

```
curl --request GET --url http://localhost:8006/___backend/changes/conflicts
```
1.0.0-rc.42

11 months ago

1.0.0-rc.41

11 months ago

1.0.0-rc.40

11 months ago

1.0.0-rc.39

11 months ago

1.0.0-rc.38

11 months ago

1.0.0-rc.35

1 year ago

1.0.0-rc.34

1 year ago

1.0.0-rc.37

1 year ago

1.0.0-rc.36

1 year ago

1.0.0-rc.24

1 year ago

1.0.0-rc.28

1 year ago

1.0.0-rc.27

1 year ago

1.0.0-rc.26

1 year ago

1.0.0-rc.25

1 year ago

1.0.0-rc.29

1 year ago

1.0.0-rc.31

1 year ago

1.0.0-rc.30

1 year ago

1.0.0-rc.33

1 year ago

1.0.0-rc.32

1 year ago

1.0.0-rc.23

1 year ago

1.0.0-rc.19

2 years ago

1.0.0-rc.18

2 years ago

1.0.0-rc.20

2 years ago

1.0.0-rc.22

2 years ago

1.0.0-rc.21

2 years ago

1.0.0-rc.17

2 years ago

1.0.0-rc.16

2 years ago

1.0.0-rc.15

2 years ago

1.0.0-rc.13

2 years ago

1.0.0-rc.12

2 years ago

1.0.0-rc.11

2 years ago

1.0.0-rc.10

2 years ago

1.0.0-rc.14

2 years ago

1.0.0-rc.9

2 years ago

1.0.0-rc.7

2 years ago

1.0.0-rc.8

2 years ago

1.0.0-rc.5

2 years ago

1.0.0-rc.6

2 years ago

1.0.0-rc.3

2 years ago

1.0.0-rc.4

2 years ago

1.0.0-rc.1

2 years ago

1.0.0-rc.2

2 years ago

1.0.0-beta.11

2 years ago

1.0.0-beta.12

2 years ago

1.0.0-beta.10

2 years ago

1.0.0-beta.17

2 years ago

1.0.0-beta.18

2 years ago

1.0.0-beta.15

2 years ago

1.0.0-beta.16

2 years ago

1.0.0-beta.2

2 years ago

1.0.0-beta.3

2 years ago

1.0.0-beta.4

2 years ago

1.0.0-beta.5

2 years ago

1.0.0-beta.0

2 years ago

1.0.0-beta.1

2 years ago

1.0.0-beta.6

2 years ago

1.0.0-beta.7

2 years ago

1.0.0-beta.8

2 years ago

1.0.0-beta.9

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.7

2 years ago

0.3.2

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.1

2 years ago

0.3.0

3 years ago

0.2.10

3 years ago

0.1.2

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.72

3 years ago

0.0.71

3 years ago

0.0.70

3 years ago

0.0.69

3 years ago

0.0.68

3 years ago

0.0.67

3 years ago

0.0.66

3 years ago

0.0.65

3 years ago

0.0.64

3 years ago

0.0.63

3 years ago

0.0.62

3 years ago

0.0.61

3 years ago

0.0.60

3 years ago

0.0.59

4 years ago

0.0.58

4 years ago

0.0.57

4 years ago

0.0.56

4 years ago

0.0.55

4 years ago

0.0.54

4 years ago

0.0.53

4 years ago

0.0.52

4 years ago

0.0.51

4 years ago

0.0.50

4 years ago

0.0.49

4 years ago

0.0.48

4 years ago

0.0.47

4 years ago

0.0.45

4 years ago

0.0.46

4 years ago

0.0.44

4 years ago

0.0.43

4 years ago

0.0.42

4 years ago

0.0.41

4 years ago

0.0.40

4 years ago

0.0.39

4 years ago

0.0.38

4 years ago

0.0.37

4 years ago

0.0.36

4 years ago