Skip to content

bluelouie/express-react-freedom

Repository files navigation

express-react-freedom Template

Simple Starter SPA Template

Does not use create-react-app for base configuration freedom

Un-opinionated

This is a jumping-off project, meant to give a faster start on a new project by taking care of the configuration of the frontend and backend.

I removed Typscript here because Typescript became a hindrance when trying to do inspired code challenges and/or learning new things. Made this repo for those who did not like the fuss.

Un-opinionated?

There is no style loader, http library, css framework, or any other bells and whistles so you can use what you want, how you want it with no push back.

Which is also the reason I didn't use create-react-app

Development

Run npm install to install all the packages plus all @types so Typescript wont yell at you at the start.

To start the project as a whole, run:

npm run build
npm start

A proxy is setup in the webpack configs to allow you to run API requests from the client side, without having to define another port. You can define more proxies in webpack.config.dev

http://localhost:8080/api/{endpoint}

To run the server separately:

npm run server:build
npm run server

//--> Runs on port 3000

To run only the client:

npm run client

//--> Runs on port 8080

Build

When you run npm build all the source code (/src) will be compiled and bundled into separate directories

dist/ <-- Complied server-side JS code
public/ <-- Bundled and minified client-side code

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Full-stack SPA Template without Typescript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published