diff --git a/client/Dockerfile b/client/Dockerfile deleted file mode 100644 index 1bca4df..0000000 --- a/client/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM node:18-alpine as builder -RUN mkdir /lottery-demo-app -WORKDIR /lottery-demo-app -COPY . /lottery-demo-app -RUN npm install -#RUN npm i serve -g - -#EXPOSE 3030 -#ENV NODE_ENV=dev REACT_APP_API_URL=https://url - -CMD [ "npm", "start" ] \ No newline at end of file diff --git a/client/README.md b/client/README.md index 1c1dc13..79dfad9 100644 --- a/client/README.md +++ b/client/README.md @@ -4,7 +4,7 @@ Casper Lottery Client is a React application bootstrapped from [CSPR.click React ## Setup -Before building фтв running the Web Client, please update the configuration. Start with copying the config template: +Before building and running the Web Client, please update the configuration. Start with copying the config template: ```bash cp public/config.js.local public/config.js @@ -16,9 +16,14 @@ Next, update the following configuration values: The rest of the values should remain the same for the local development, unless you made corresponding changes in other places. +To install the dependencies, run: +``` +npm install +``` + ## Build -To build the project for production, use: +To build the project for production, run: ``` npm run build ``` @@ -27,7 +32,7 @@ This command will create a build folder with optimized production-ready files. ## Run -To run the application, use: +To run the application, execute: ```bash npm start