0.4.15 • Published 4 months ago

gp-front-dev-server v0.4.15

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

gp-front-dev-server

Development server for gp-front.

Why?

Development process is complicated. To develop new platform features and components we need to have an ability to run development process locally. We need a dev server for this. First of all our server should work as regular proxy. On one hand, it should have an ability to proxy requests, addressed to database (analitical server) and backend:

  • data requests to /api
  • storage requests
  • session requests and on the other, it should communicate with /graphql endpoint to read, create, update and delete the assets.

The pages are composed of assets. Pages are the crucial parts of the application that need to be treated with extra care as they are not currently protected by git (but the situation is expected to change soon).

They located on the server side, in file system. Sometimes (very often!) we need more freedom in editing them.

And of course we want to see all the changes in out sources hot-reloaded.

This server was created to solve these problems.

Installation

npm i -D gp-front-dev-server

Environment variables configuration

Use this .env.example and edit it with your credentials for development.

Usage in gp-front

Add to package.json scripts section:

"dev": "gp-front-dev-server"

and run npm run dev.

How to use gp-front-dev-server for local pages development?

Add to .env in your gp-front repo the variables:

USE_INSTANCE_PAGES_DIR_LOCAL=1
INSTANCE_PAGES_DIR_LOCAL=<path-to-local-pages-dir>

You can avoid loading remote page server-side rendered information with env var:

USE_LOCAL_PAGES_HTML=1
0.4.15

4 months ago

0.4.9

8 months ago

0.4.8

8 months ago

0.4.10

8 months ago

0.4.13

8 months ago

0.4.14

8 months ago

0.4.11

8 months ago

0.4.5

9 months ago

0.4.4

9 months ago

0.4.7

8 months ago

0.4.6

9 months ago

0.3.53

12 months ago

0.3.59

12 months ago

0.3.58

12 months ago

0.3.57

12 months ago

0.3.56

12 months ago

0.3.55

12 months ago

0.3.54

12 months ago

0.4.1

10 months ago

0.4.0

10 months ago

0.4.3

10 months ago

0.4.2

10 months ago

0.3.52

1 year ago

0.3.51

1 year ago

0.3.50

1 year ago

0.3.49

1 year ago

0.3.48

1 year ago

0.3.47

1 year ago

0.3.45

1 year ago

0.3.44

1 year ago

0.3.43

1 year ago

0.3.42

1 year ago

0.3.41

1 year ago

0.3.40

1 year ago

0.3.39

1 year ago

0.3.38

1 year ago

0.3.37

1 year ago

0.3.35

1 year ago

0.3.34

1 year ago

0.3.33

1 year ago

0.3.32

1 year ago

0.3.31

1 year ago

0.3.30

1 year ago

0.3.29

1 year ago

0.3.28

1 year ago

0.3.27

1 year ago

0.3.26

1 year ago

0.3.24

1 year ago

0.3.23

1 year ago

0.3.20

1 year ago

0.3.22

1 year ago

0.3.21

1 year ago

0.3.17

1 year ago

0.3.16

1 year ago

0.3.15

1 year ago

0.3.19

1 year ago

0.3.18

1 year ago

0.3.13

1 year ago

0.3.12

1 year ago

0.3.11

1 year ago

0.3.10

1 year ago

0.3.9

1 year ago

0.2.14

1 year ago

0.2.13

1 year ago

0.3.8

1 year ago

0.3.7

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.2.12

1 year ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.8

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.4

2 years ago

0.1.0

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago