New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jsapp-starter

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsapp-starter

Javascript React/Express Fullstack App generator.

latest
Source
npmnpm
Version
1.0.8
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

jsapp-starter

node npm build publish

Node.js project generator for React Full stack Application.

Perquisites

  • node.js 16+
  • npm 8+

Features

  • Generates React Client and Express Server subprojects.
  • Uses npm workspaces to manage both subprojects.
  • Uses Typescript for both server and Client
  • For full features refer to cra-express-ts-starter

Usage

  • Create React/Express fullstack starter app.
$ npx jsapp-starter create-app <my-app>

Run npx jsapp-starter --help or npx jsapp-starter create-app --help for additional options.

  • Start Server
$ cd my-app
$ npm start --workspace=server
  • Start the Cleint
$ cd my-app
$ npm start --workspace=client

Advanced Usage

Development with Proxy Mode

  • Here you run client with react-scripts webpack server and all the Api calls get proxied to SERVER_URL
  • Start server by running npm start --workspace=server
  • Configure client/.env.development and set
PORT=3000
PUBLIC_URL=
REACT_APP_USE_PROXY=true
REACT_APP_SERVER_URL=http://localhost:9000
  • Start Client by running npm start --workspace=client
  • Access application on default location http://localhost:3000

Development in Server Mode

  • Here you build the client application on a watch, and server serves the Client applicaton from build folder
  • Configure server/.env.development and set
PUBLIC_PATH=../client/build
  • Start server by running npm start --workspace=server
  • Configure client/.env.development and set
PUBLIC_URL=http://localhost:9000
REACT_APP_USE_PROXY=false
REACT_APP_SERVER_URL=
  • Start watch on client builds by running npm run watch:dev:build --workspace=client
  • Access application on server's location http://localhost:9000

NOTE: Refer to Project README for additional information.

License

MIT License.

Keywords

Javascript

FAQs

Package last updated on 02 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts