Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tedkulp/express-react-app-starter
Starter project for a react app and express API server. Uses Docker for Mac and makes a lot of assumptions.
https://github.com/tedkulp/express-react-app-starter
Last synced: 2 days ago
JSON representation
Starter project for a react app and express API server. Uses Docker for Mac and makes a lot of assumptions.
- Host: GitHub
- URL: https://github.com/tedkulp/express-react-app-starter
- Owner: tedkulp
- Created: 2018-01-13T13:39:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T14:44:38.000Z (about 2 years ago)
- Last Synced: 2024-11-14T10:41:27.832Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 747 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Create React App & Express Starter
This is a starter project for creating a simple frontend/backend app w/ Express and React/Redux.
It makes a lot of assumptions as far as development environment:
* You're using docker and docker-compse in a docker-machine setup.
* You have node already setup and installed.
* It was created and used on a Mac, and I'm not sure if it will work in other environments or not.
* You want to use Mongodb and Redis, though I may create an override for Postgres and Redis.## Setup
To set it up, do the following:
```bash
git clone https://github.com/tedkulp/express-create-react-app-starter.git my-project
cd my-project
./setup.sh
docker-compose build --pull
```This will do an npm install to get create-react-app, create the frontend, and then npm install
all the packages for the frontend as well. It will also build all the initial docker containers
and make sure everything is ready to go for the first run.When you're happy with how it works, run `./cleanup.sh` to remove all of the setup files
and start a new git repository.## Running
In the root directory, run `npm run dev`. This will start the docker containers with docker-compose
and also start another instance of the frontend so that code can be hot reloaded.## Deployment
TODO