This is a simple TypeScript-based React app which show Descope flow is built and served using Docker and Nginx.
Before you begin, ensure you have met the following requirements:
- You have installed Node.js (version 16 or newer)
- You have installed Docker
- You have a basic understanding of JavaScript/TypeScript and React
-
Clone this repository:
git clone https://github.com/your-github-username/react-docker-app.git cd react-docker-app
-
Install dependencies:
npm install
To run the app locally, you can use:
npm start
You should now be able to see the application running at http://localhost:8080
in your web browser.
To build the React app locally, you can use:
npm run build
This will bundle the application using Webpack and output to the dist
directory.
To build the Docker image:
docker build -t react-docker-app .
This will create a Docker image named react-docker-app
.
After building the Docker image, you can run the app with:
docker run -p 8080:80 react-docker-app
You should now be able to see the application running at http://localhost:8080
in your web browser.