Skip to content

Demonstrating various libraries that require client-server interaction, like AWS, Socket.io and sequelize in React, Express and NextJS apps

Notifications You must be signed in to change notification settings

nishkohli96/client-server-libs

Repository files navigation

client-server-libs

Experimenting with different technologies that require client-server interaction

Features

Get Started

The code for shared packages are in the packages folder & the applications code in the apps folder.

Install node_modules

yarn

Due to some issues with express dependencies, you also need to run

npm dedupe

to scan your node_modules and moves dependencies up in the tree if different versions can be consolidated. Delete the package-lock.json after running this command.

Build, run, lint or test all your apps in one command thanks to Turborepo's Pipelines

To build all the shared packages,

turbo lib:build

Each of the applications have common scripts which can be easily executed in parallel by turborepo's pipelines. Add these in turbo.json.

Command Result
dev Run development server
build Build the application
start Run the production build
prod Build the app and then run the build
lint Run eslint to fix code

Support Me

If you found these code snippets helpful and saved your valuable time, please consider buying me a coffee.