All Projects β†’ joecohens β†’ Next Express Monorepo Starter

joecohens / Next Express Monorepo Starter

NextJS, Express and Now as Microservices with Yarn & Lerna Workspaces

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Next Express Monorepo Starter

monorepo-typescript-next-the-sane-way
A monorepo example using TypeScript and Next.js
Stars: ✭ 104 (+108%)
Mutual labels:  nextjs, monorepo
Graphql Starter
πŸ’₯ Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, Relay, and Material UI.
Stars: ✭ 3,377 (+6654%)
Mutual labels:  yarn, monorepo
monopack
A JavaScript bundler for node.js monorepo-codebased applications.
Stars: ✭ 52 (+4%)
Mutual labels:  yarn, monorepo
relay-starter-kit
πŸ’₯ Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, Relay, Material UI.
Stars: ✭ 3,513 (+6926%)
Mutual labels:  yarn, monorepo
Nx
Smart, Fast and Extensible Build System
Stars: ✭ 9,737 (+19374%)
Mutual labels:  monorepo, nextjs
mock-spy-module-import
JavaScript import/require module testing do's and don'ts with Jest
Stars: ✭ 40 (-20%)
Mutual labels:  yarn, monorepo
Webclient
Monorepo hosting the proton web clients
Stars: ✭ 3,079 (+6058%)
Mutual labels:  yarn, monorepo
nextjs-monorepo-example
Collection of monorepo tips & tricks
Stars: ✭ 874 (+1648%)
Mutual labels:  yarn, monorepo
React Workspaces Playground
βš›οΈ 🐈 Zero Config Create-React-App Monorepos with Yarn Workspaces, Lerna and React Storybook.
Stars: ✭ 658 (+1216%)
Mutual labels:  yarn, monorepo
Ts Monorepo
Template for setting up a TypeScript monorepo
Stars: ✭ 459 (+818%)
Mutual labels:  nextjs, monorepo
yarn-workspaces-simple-monorepo
Yarn Workspaces basic monorepo management without Lerna for coding examples
Stars: ✭ 31 (-38%)
Mutual labels:  yarn, monorepo
Oao
A Yarn-based, opinionated monorepo management tool
Stars: ✭ 796 (+1492%)
Mutual labels:  yarn, monorepo
yarn-plugin-workspace-since
λͺ¨λ…Έλ ˆν¬λ₯Ό μœ„ν•œ yarn berry plugin
Stars: ✭ 120 (+140%)
Mutual labels:  yarn, monorepo
React-Native-Web-TypeScript-Prettier-Boilerplate
A starterkit to work with nextjs, react-native, storybook… all with prettified typescript and in a monorepo
Stars: ✭ 16 (-68%)
Mutual labels:  yarn, monorepo
yarn-workspaces-example
Sample monorepo project using new Yarn feature called Workspaces
Stars: ✭ 39 (-22%)
Mutual labels:  yarn, monorepo
monoreact
πŸ“¦ React workspaces implementation
Stars: ✭ 13 (-74%)
Mutual labels:  yarn, monorepo
monorepo-utils
A collection of utilities for monorepo/lerna. Tools for TypeScript project references etc..
Stars: ✭ 143 (+186%)
Mutual labels:  yarn, monorepo
yall
Yarn/npm for monorepos
Stars: ✭ 27 (-46%)
Mutual labels:  yarn, monorepo
Syncpack
Manage multiple package.json files, such as in Lerna Monorepos and Yarn/Pnpm Workspaces
Stars: ✭ 356 (+612%)
Mutual labels:  yarn, monorepo
Lerna Yarn Workspaces Example
How to build TypeScript mono-repo project with yarn and lerna
Stars: ✭ 787 (+1474%)
Mutual labels:  yarn, monorepo

NextJS, Express and Now as Microservices with Yarn & Lerna Workspaces

This is a starter/example repo for creating websites with NextJS and API with Express on a monorepo, with yarn & lerna.

How to use

WEB (NextJS) will be running on http://localhost:3000 API (Express) will be running on http://localhost:3001 PROXY (Micro Proxy) will be running on http://localhost:9000

Web

The web will be available on it's own http://localhost:3000 and also will be mapped to be the default http://localhost:9000/. The source code it's on packages/web and it can be deployed by it self.

API

The api will be available on it's own http://localhost:3001 and also will be mapped to http://localhost:9000/api on the proxy server so you can consume it easily from the website, the source code it's on packages/api and it can be deployed by it self.

How to install

Clone the repo.

git clone https://github.com/joecohens/next-express-monorepo-starter {project-name}

cd {project-name}

Copy the env files for each service.

cp packages/api/.env.example packages/api/.env
cp packages/web/.env.example packages/web/.env

Install dependencies only on the root thanks to yarn workspaces.

yarn install

Development

Run the dev server from the root project.

yarn dev

You can run each service individually.

yarn dev:web
yarn dev:api

For more info look a the package.json scripts.

Deploy

You can easily deploy each microservice using now and use alias paths to route exactly like micro-proxy, so you'll have the same production env.

I'll will add an example and scripts soon.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].