Author: EndeavorPal Technology
This document provides detailed instructions for initializing and deploying the Ansari Chat React project. Adherence to these steps is crucial for successful project setup and execution.
-
Begin by cloning the repository. Execute the following command:
git clone https://github.com/waleedkadous/ansari-frontend
-
Verify the installation of Node.js and Yarn on your system. These can be downloaded from their respective official sites:
- Duplicate the
.env.example
file, rename it to.env
, and modify theREACT_APP_API_V2_URL
- Execute
yarn install
to procure all necessary dependencies.
- Initiate the development mode by running
yarn start
.
- Update
PUBLIC_URL
andREACT_APP_API_V2_URL
in the.env
file - Install a web server, such as nginx, for hosting the production build. Reference the provided sample nginx configuration in the nginx.conf.sample file for setup guidance.
- Generate the production build by executing
yarn build
. Locate the output in thebuild
directory. - Transfer the contents of the
build
folder to the root directory of your web server.