A "modern" JavaScript application built with React, designed to facilitate real-time communication and collaboration. This project leverages best practices in code style, environment configuration, and deployment for scalable web applications.
(works as an example of using sockets for real-time messaging, and WebRTC for video calls, and screensharing)
- React-based frontend for a responsive user experience
- Node.js/Express server (see
server.jsandserver/) - Environment-based configuration (
.env.example) - Code quality enforced with ESLint and Prettier
- Easily deployable (includes
.gcloudignorefor Google Cloud support) - Lock files for reproducible installs (
pnpm-lock.yaml)
- Node.js (recommended v18+)
- PNPM package manager
-
Clone the repository:
git clone https://github.com/othonrm/lets-talk.git cd lets-talk -
Install dependencies:
yarn install # or pnpm install -
Configure environment variables:
- Copy
.env.exampleto.envand fill in the required values.
- Copy
-
Development mode:
yarn start
App runs at http://localhost:3000
-
Start server:
node server.js
(Check
server.jsfor custom server logic.)
pnpm start– Starts both the BE.pnpm start:client– Runs the FE in development mode.pnpm start:server– Runs the BE in development mode.pnpm build– Builds the application for production.pnpm test– Run tests
lets-talk/
├── public/ # Static public assets
├── src/ # React application source code
├── server/ # Backend/server-side code
├── server.js # Main server entry point
├── .env.example # Example environment variables
├── package.json
- ESLint:
.eslintrc.jsfor linting rules - Prettier:
.prettierrcfor code formatting
- Optimized for deployment to various cloud providers (see
.gcloudignorefor Google Cloud) - Production-ready builds go into the
build/directory
The MIT License (MIT)
Copyright (c) 2020 Jose Othon
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.