Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging #72

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
fb17166
Adding temporary changes to Github
seyth Jul 8, 2024
d16fe9a
Adding temporary changes to Github
seyth Jul 8, 2024
172ed70
Adding temporary changes to Github
seyth Jul 8, 2024
9a9b3b4
Adding temporary changes to Github
seyth Jul 8, 2024
8a84954
Adding temporary changes to Github
seyth Jul 8, 2024
6babcca
Adding temporary changes to Github
seyth Jul 9, 2024
bed92dd
Adding temporary changes to Github
seyth Jul 9, 2024
eb8c6bf
Adding temporary changes to Github - Until Reviews
seyth Jul 9, 2024
89bc8c9
Adding temporary changes to Github - Deploy application Kubernetes
seyth Jul 10, 2024
7521784
Create main.yml
seyth Jul 10, 2024
90c29ba
Adding temporary changes to Github - Github Lab
seyth Jul 10, 2024
5a496e6
Create main1.yml
seyth Jul 10, 2024
be81970
Delete .github/workflows directory
seyth Jul 10, 2024
e084649
Create main.yml
seyth Jul 10, 2024
36d3f52
Delete .github/workflows directory
seyth Jul 10, 2024
df2c1f2
Adding temporary changes to Github - Final
seyth Jul 11, 2024
b29b2bc
Adding temporary changes to Github - Final version
seyth Jul 11, 2024
c0728a5
Create main.yml
seyth Jul 11, 2024
78b3a16
Update models.py
seyth Jul 11, 2024
94d57ce
Update models.py
seyth Jul 11, 2024
e6e94bc
Update populate.py
seyth Jul 11, 2024
5647a0a
Update restapis.py
seyth Jul 11, 2024
f2a785f
Update views.py
seyth Jul 11, 2024
91bdb76
Delete .github/workflows directory
seyth Jul 11, 2024
b78a4b7
Create main.yml
seyth Jul 11, 2024
d1509b0
Update models.py
seyth Jul 11, 2024
3cac084
Delete .github/workflows directory
seyth Jul 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM python:3.12.0-slim-bookworm

ENV PYTHONBUFFERED 1
ENV PYTHONWRITEBYTECODE 1

ENV APP=/app

# Change the workdir.
WORKDIR $APP

# Install the requirements
COPY requirements.txt $APP

RUN pip3 install -r requirements.txt

# Copy the rest of the files
COPY . $APP

EXPOSE 8000

RUN chmod +x /app/entrypoint.sh

ENTRYPOINT ["/bin/bash","/app/entrypoint.sh"]

CMD ["gunicorn", "--bind", ":8000", "--workers", "3", "djangoproj.wsgi"]
21 changes: 18 additions & 3 deletions server/database/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,32 @@ app.get('/fetchReviews/dealer/:id', async (req, res) => {

// Express route to fetch all dealerships
app.get('/fetchDealers', async (req, res) => {
//Write your code here
try {
const dealers = await Dealerships.find();
res.json(dealers);
} catch (error) {
res.status(500).json({ error: 'Error fetching documents' });
}
});

// Express route to fetch Dealers by a particular state
app.get('/fetchDealers/:state', async (req, res) => {
//Write your code here
try {
const documents = await Dealerships.find({state: req.params.state});
res.json(documents);
} catch (error) {
res.status(500).json({ error: 'Error fetching dealers by ID' });
}
});

// Express route to fetch dealer by a particular id
app.get('/fetchDealer/:id', async (req, res) => {
//Write your code here
try {
const documents = await Dealerships.find({ id: req.params.id });
res.json(documents);
} catch (error) {
res.status(500).json({ error: 'Error fetching dealers by ID' });
}
});

//Express route to insert review
Expand Down
1 change: 1 addition & 0 deletions server/database/node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading