A ready to customize project to make a nice webapp using Node.js (Express.js) for the backend and React with Typescript and Redux for the frontend.

Overview

A nice boilerplate to start wit Node.js and React

Use this repository to build a webapp with Express.js (backend) and React+Redux (frontend).

This webapp uses RESTFULL APIs using HTTP Post messages. React app talk with the server using a Bkconnect Js file.

In this example I use Postgres for DB.

  1. Install backend env:

    • cd ./webserver/api/
      
    • cp .env.example .env
      
    • npm install
      
    • npm install '@pm2/io'
      
    • To test the CSV db API you can run npm test (it use mocha)
  2. Install frontend env:

    • cd ../client/
      
    • cp .env.example .env
      
    • adapt .env file to your backend ip address (if you run all in local you can leave 'localhost')
    • npm install
      
    • npm install -g serve
      
    • npm run build
      
  3. Run both applications: To run the applications you can do in different way:

    1. Using PM2 server manager there is a ecosystem.config.js, run it with this command in the root of the project:
      • Install pm2 with npm i -g pm2
      • Start ecosystem with pm2 start ecosystem.config.js
    2. Manually you can run both apps in this way:
      • Execute serve.sh script (it runs 'npm run start' on the backend and 'npm run serve' on the client)

Note:

The automated scripts must be executable with right permissions:

chmod +x ./install.sh
chmod +x ./serve.sh

use node -v to make shure to have the latest Node.js version.

In production mode:

Change webserver/client/.env file --> Comment Locallhost ip address and set it with your server public IP

You might also like...
Boilerplate for building applications with a React frontend and a C++ gRPC backend

Boilerplate for building applications with a React frontend and a C++ gRPC backend. How To Run Backend Install Bazel Bazel is for building the backend

Bash-prompt-generator - Easily customize bash prompt PS1 colors, written with React
Bash-prompt-generator - Easily customize bash prompt PS1 colors, written with React

Bash prompt generator This is a web app for helping you customize the colors in

An Electron boilerplate featuring typescript, react, webpack, tailwind and redux - ready to use!

A secure, modular, and easy to use Electron Forge boilerplate featuring Typescript, React, Webpack, TailwindCSS, Redux and persistance (with redux-persist support)

Full Stack boilerplate with JWT Authentication - Built with React, Typescript, Node, Express, GraphQL, PostgreSQL, Redis, and Webpack
Full Stack boilerplate with JWT Authentication - Built with React, Typescript, Node, Express, GraphQL, PostgreSQL, Redis, and Webpack

Full Stack boilerplate with JWT Authentication - Built with React, Typescript, Node, Express, GraphQL, PostgreSQL, Redis, and Webpack

Starter template using React on a website's frontend - without Node
Starter template using React on a website's frontend - without Node

React Frontend Quickstart ⚛️ 📦 Starter template using React on a website's frontend - without Node Preview Documentation License Released under MIT b

A growing collection of responsive Chakra UI Templates ready to drop into your React project.

A growing collection of responsive Chakra UI Templates ready to drop into your React project.

My project of personal blog using my knowledge in Node, Nest, React and Typescript

A progressive Node.js framework for building efficient and scalable server-side applications. Description Nest framework TypeScript starter repository

Dinos-nft-minting-dapp - A nice and easy way for linking an existing NFT smart contract to this minting dapp
Dinos-nft-minting-dapp - A nice and easy way for linking an existing NFT smart contract to this minting dapp

Welcome to HashLips 👄 All the code in these repos was created and explained by

Starter template for Vite with React (TypeScript). Supports Tailwind with CSS-Modules. Jest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.
Starter template for Vite with React (TypeScript). Supports Tailwind with CSS-Modules. Jest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.

Mocking up web app with Vital(speed) Live Demo Features ⚡️ React 17 🦾 TypeScript, of course 🫀 Jest - unitary testing made easy 🎨 Tailwind with JIT

Releases(1.0.1)
Owner
Elia Lazzari
Elia Lazzari
Fyodor Simonov 3 Apr 15, 2022
Full-stack React app built with Typescript, Bootstrap, Apollo client on the frontend, and NodeJS/Express, Typescript, Apollo server, and MongoDB/mongoose on the backend.

Event Scheduler App This project was bootstrapped with Create React App. Event Scheduler is a React app that allows users to create events. An event c

ahmed 8 Dec 1, 2022
winwiz1 157 Dec 28, 2022
A starter boilerplate for a universal webapp using express, react, redux, webpack, and react-transform

React Redux Universal Hot Example About This is a starter boilerplate app I've put together using the following technologies: Isomorphic Universal ren

Erik Rasmussen 12.1k Jan 5, 2023
A demo repo to dockerize React Frontend(using Create React App) and Express Backend

This is a Demo Repository to dockerize a React frontend and an express backend in a single container. The two important files are: Dockerfile contains

Raghavendra Kaushik 7 Nov 2, 2022
A web application for learning about your local politicians built with a React and Next.js front-end, an Express Node.js GraphQL backend API

Integra is a web application for learning about your local politicians. It is built with a React and Next.js front-end, an Express Node.js GraphQL backend API, and a MongoDB database with a Prisma schema.

Jeremy Nguyen 9 Dec 1, 2022
My Anime List : A web app which is bulit using react as a frontend and firebase as a backend

Firebase_My_Anime_List Deployed Project on firebase - https://myanimelist-e637e.web.app/ My_Anime_List is webapp which is bulit using react as a front

Kirti Singh 3 Dec 1, 2022
CRUD App using MERN Stack, it uses ReactJS for Front-end, NodeJS, Express For the Backend and Mongo DB as database!

Book Collection List ?? Demonstration of the application | Features | Technologies used | Application installation ?? Demonstration of the application

Victor Lira 33 Nov 20, 2022
React-typescript-mini-project - Node Module Search With Typescript Reactjs and Redux

Node Module Search Getting Started It is project for freshers who want to learn

Amitesh Mani Tiwari 1 Jan 22, 2022
A well-structured production-ready frontend boilerplate for React and Next.js

superplate-core-plugins This is the source repository for superplate's core plugins. Plugins UI Frameworks Tailwind CSS React Bootstrap Chakra UI Ant

Pankod 40 Dec 14, 2022