- Node.js
- npm
Clone this repository and change into it's root directory.
If you are running this on Windows, there may be workarounds needed (below), as this was made in WSL.
If not all files cloned (caused by file with names containing ':' character), execute the following:
- Set git flag with
git config core.protectNTFS false
. Git is susceptible to NTFS-related attacks when:
- Running Git in the WSL
- Working directly on Windows drives
- Running Git on macOS and working on smb://-mounted network shares
- Run
git reset
- Run
git checkout
- Run
git restore ./
Ensure all project dependencies are installed with npm install
.\
To run the app on Localhost: npm run storybook
.
If you receive the error, 'Error: error:0308010C:digital envelope routines::unsupported' after the above command:
- Unix: run
export NODE_OPTIONS=--openssl-legacy-provider
- Windows command prompt:
set NODE_OPTIONS=--openssl-legacy-provider
- Powershell:
$env:NODE_OPTIONS = "--openssl-legacy-provider"
If the above doesn't work, try to use the current LTS version from Node.js.
Clone repository with directions above and navigate to the root directory.
Download Docker here and start it up to ensure the Docker daemon is running.
To create a Docker image, run: docker build -t <desired_image_name> .
Then, to run the image as a container: docker run --name <desired_container_name> -it -p 8083:80 --rm <image_name>
Now open localhost:8083 in a browser!
Download Docker here and start it up to ensure the Docker daemon is running.\
docker pull abozynski/bozynski_alina_coding_assignment12
docker run --name <desired_container_name> -it -p 8083:80 --rm abozynski/bozynski_alina_coding_assignment12
Now open localhost:8083 in a browser!
In the project directory, you can run:
Runs the Storybook component library in your browser on Localhost at port 8083.
Runs all test files with Jest.
Builds the app for production to the dist
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
To list all files that you gave nginx access to, run:
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.