Skip to content

Commit

Permalink
Switch over to our own dev server for the client
Browse files Browse the repository at this point in the history
This version will allow us a lot more control over stubbing and faking
out responses from the "server" in the future.

Splits /client into two sections, each with their own package.json

[1] /client: Now just for the literal client. No "build" dependencies
    in this project.
[2] /client_toolchain: For all the code and dependencies necessary to
    compile the client as well as run the dev server.

npm commands have been reworked:

  `$ npm start` - starts the dev server
  `$ npm deploy` - compiles the client for production (and updates
                   dependencies if necessary)
  `$ npm dev-deps` - Installs additional development dependencies
  • Loading branch information
7sempra committed May 24, 2020
1 parent e064657 commit a6420dd
Show file tree
Hide file tree
Showing 20 changed files with 6,214 additions and 5,613 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ pkg/
run.sh
node_modules/
/client/dist
/client/stats.json
/stats.json
/client_toolchain/dev_server/dist
static/dist
29 changes: 22 additions & 7 deletions client/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,36 @@
# Client

## Development setup
## Setup

First, install the "Current" version of [Node.js](https://nodejs.org/).
Install the "Current" version of [Node.js](https://nodejs.org/).

Then install dependencies:
## Deploying

To build the production version of the client, run:

```
$ npm run deploy
```

## Development

First install dependencies:

```
$ npm run dev-deps
```

Then start the development server:

```
$ cd client
$ npm ci
$ npm start
```

Finally, run `$ npm start` to run the development server. Or run `$ npm run build` to build the production version (to be checked in).
Then visit [http://localhost:8080] in your browser to see your local version.

## Recommended editor setup

I strongly recommend using [VS Code](https://code.visualstudio.com/).

Install the Vetur extension (View > Extensions). After installing, click the
gear icon
gear icon > Extension Settings.. > Enable "Template Interpolation Service".
50 changes: 0 additions & 50 deletions client/build_config/webpack.dev.js

This file was deleted.

Loading

0 comments on commit a6420dd

Please sign in to comment.