Skip to content

Commit

Permalink
v5.5.3
Browse files Browse the repository at this point in the history
- Use separate Dockerfile to build backend and frontend
- React now fully controls the webpage content
- Django now only provides APIs
  • Loading branch information
sakan811 committed Jul 13, 2024
1 parent 571ea85 commit 2725554
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Latest Update: 12 July 2024
## To scrape data from Booking.com
- Pull this Docker image: ```docker pull sakanbeer88/best-hotel-web-app-backend:latest```
- Pull this Docker image: ```docker pull sakanbeer88/best-hotel-web-app-frontend:latest```
- Run a Docker container
- Navigate to [localhost:8000](http://localhost:8000)
- Run ```docker-compose up --build```
- Navigate to [localhost:3000](http://localhost:3000)

## Disclaimer
When filling the form, please use an abbreviation for currency
Expand Down
4 changes: 2 additions & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ FROM node:21
WORKDIR /app

# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
COPY package*.json /app/

# Install dependencies
RUN npm install

# Copy the rest of the application code into the container
COPY . .
COPY . /app/

# Build the React app for production
RUN npm run build
Expand Down
2 changes: 1 addition & 1 deletion frontend/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
},
plugins: [
new HtmlWebpackPlugin({
template: './public/index.html', // Assuming your index.html is in the src directory
template: './public/index.html',
}),
],
devServer: {
Expand Down

0 comments on commit 2725554

Please sign in to comment.