Skip to content

Commit fb006d4

Browse files
committed
client ready
0 parents  commit fb006d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+37189
-0
lines changed

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
npm-debug.log
3+
README.md

.env.example

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
REACT_APP_BASE_API_URL=
2+
REACT_APP_CLOUDINARY_API_KEY=
3+
REACT_APP_CLOUDINARY_CLOUD_NAME=

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"arrowParens": "avoid",
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"semi": true
6+
}

Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Use an official Node.js runtime as the base image
2+
FROM node:14-alpine
3+
4+
# Set the working directory inside the container
5+
WORKDIR /app
6+
7+
# Copy the package.json and package-lock.json files to the working directory
8+
COPY package*.json ./
9+
10+
# Install the app dependencies
11+
RUN npm install
12+
13+
# Copy the entire app to the working directory
14+
COPY . .
15+
16+
# Build the app
17+
RUN npm run build
18+
19+
# Expose the port that the app will run on
20+
EXPOSE 3000
21+
22+
# Start the app
23+
CMD ["npm", "start"]

Makefile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ifneq (,$(wildcard ./.env))
2+
include .env
3+
export
4+
ENV_FILE_PARAM = --env-file .env
5+
6+
endif
7+
8+
build:
9+
docker build -t bidout-auction-react .
10+
11+
up:
12+
docker run -it -p 3000:3000 bidout-auction-react

README.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# BidOut Auction React 2
2+
3+
#### Related Repo - [Bidout Auction API With Litestar](https://github.com/kayprogrammer/bidout-auction-v3)
4+
#### This repo is same as [Bidout Auction React](https://github.com/kayprogrammer/bidout-auction-react). But guest users was handled differently.
5+
6+
![alt text](https://github.com/kayprogrammer/bidout-auction-react2/blob/main/display/logo.webp?raw=true)
7+
8+
9+
#### React Docs: [Documentation](https://legacy.reactjs.org/docs/getting-started.html)
10+
11+
#### Chakra UI Docs: [Documentation](https://chakra-ui.com/getting-started)
12+
13+
14+
## How to run locally
15+
16+
* Download this repo or run:
17+
```bash
18+
$ git clone [email protected]:kayprogrammer/bidout-auction-react2.git
19+
```
20+
21+
#### In the root directory:
22+
- Install all dependencies
23+
```bash
24+
$ npm install
25+
```
26+
- Create an `.env` file and copy the contents from the `.env.example` to the file and set the respective values.
27+
28+
- Run Locally
29+
```bash
30+
$ npm start
31+
```
32+
33+
#### With Docker
34+
- Docker Direct
35+
```bash
36+
$ docker build -t bidout-auction-react2 .
37+
$ docker run -it -p 3000:3000 bidout-auction-react2
38+
```
39+
- Docker With Makefile
40+
```bash
41+
$ make build
42+
$ make up
43+
```
44+
45+
## Live Urls
46+
#### React Application (Live): [Bidout Auction 2](https://bidout2.netlify.app)
47+
#### API Docs (Live): [Documentation](https://bidout-litestar-api.cleverapps.io)
48+
![alt text](https://github.com/kayprogrammer/bidout-auction-react/blob/main/display/display.png?raw=true)

display/display.png

571 KB
Loading

display/logo.webp

23 KB
Binary file not shown.

0 commit comments

Comments
 (0)