Skip to content

asafshen/descope-react-in-docker

Repository files navigation

Descope React App with Docker

This is a simple TypeScript-based React app which show Descope flow is built and served using Docker and Nginx.

Prerequisites

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

Installing

  1. Clone this repository:

    git clone https://github.com/your-github-username/react-docker-app.git
    cd react-docker-app
  2. Install dependencies:

    npm install

Running the app locally

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.

Building

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.

Running

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published