Skip to content

This is a template repository to get up and running quickly with: Express, React, Jest, Docker, and Github Actions for CI/CD.

Notifications You must be signed in to change notification settings

lucastaffo/fullstack-template

This branch is 5 commits behind harrisoncramer/fullstack-template:main.

Folders and files

NameName
Last commit message
Last commit date
Sep 22, 2021
Sep 14, 2021
Sep 14, 2021
Sep 13, 2021
Sep 13, 2021
Sep 13, 2021
Sep 14, 2021
Sep 14, 2021
Sep 13, 2021
Sep 16, 2021
Sep 14, 2021
Sep 14, 2021
Sep 14, 2021
Sep 14, 2021

Repository files navigation

React Template Repository

This is a template repository for a full-stack, dockerized application using React, React-Router, Webpack, Express, and SASS. It includes:

  • Webpack production optimizations
  • Webpack proxying for backend
  • SASS & loaders for styling
  • Express for SPA backend
  • React-router for routes
  • Lazy-loading for optimization
  • BundleAnalyzerPlugin for bundle management
  • URL Loader for Images/Assets
  • Jest for test running
  • Supertest for backend tests
  • React-Testing-Library for frontend tests
  • Github Actions for CI**
  • Docker for containerization
  • ESLint for Linting

Installation

npm install

Development

npm run start

For backend only: npm run dev:express

For frontend only: npm run dev:webpack

Tests

npm run test

Bundle Analysis

npm run analyze

Docker

Build the image: docker build -t yourusername/yourapp .

Run the image (map the ports): docker run -dit -p 3000:3000 yourusername/yourapp

Github Actions

The github actions in this repository are configured to build and push a Docker image to my account by default. You can either delete the .github folder or configure them with your own account + credentials. You may also delete the docker job, leaving the other CI tests in place.

About

This is a template repository to get up and running quickly with: Express, React, Jest, Docker, and Github Actions for CI/CD.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.9%
  • SCSS 12.2%
  • Dockerfile 4.2%
  • HTML 3.7%