This project provides a fullstack template with react frontend and express backend.
The goal of the project is to create a modular fullstack where the modules work independent from each other to swap / exchange them if nessesary.
The project was created with yarn, npm is not tested and will might be not work, because yarn workspaces is used.
The project requires yarn to be installed, as well as some global libraries.
Global Libraries:
Concurrently
Nodemon
You can install this libraries with the following command:
sudo yarn global add concurrently nodemon
To getting started with the template, you will need to move into the root directory and run:
yarn install
This project already comes with some preconfigured scripts. Each script is divided into 3 seperate scripts to be able to execute scripts for each module (separate) or combined. For simplicity only the combined scripts will be listed, but each script can have the postfix "-client" or "-server".
- lint
- Runs the linter for each module
- test
- Runs all tests of the modules
- dev
- Starts both modules in development mode
- start
- Starts both modules in production mode
- build
- Build a production-ready version of the project
The project can be build to be production-ready with a single command:
yarn build
You will find the final build under build.
For further details, how the modules and scripts work, see the README of the modules.
This project is licensed under the MIT License - see the LICENSE.md file for details