Skip to content

yairmark/lerna-create-react-app-babel7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a sample repository on how to use Lerna, create react app and server side node together. The aim of this setup is to allow a shared component to be defined in one sub-repo and be used by another within the same monorepo. The shared repo also defines constants which are used on both the ui repo (cra-1) and the server repo.

Getting Started

After A Fresh Clone

Run the following:

## Install our dependencies
npm install

## Call the bootstrap script which calls lerna to bootstrap the monorepo
npm run bootstrap

Running the UI and Server

Simply run:

npm run start

The UI can be access from http://localhost:3000 while the server can be accessed at http://localhost:3002. The server has the following route (which uses the shared constants from the common module) http://localhost:3002/users.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •