Skip to content

Commit

Permalink
improve project structure; follow nynvr project template structure;
Browse files Browse the repository at this point in the history
  • Loading branch information
noynovera committed Dec 13, 2024
1 parent ed4f592 commit b794dec
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 18 deletions.
1 change: 0 additions & 1 deletion apps/api/.python-version

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion apps/web/.nvmrc

This file was deleted.

4 changes: 2 additions & 2 deletions apps/web/app/package-lock.json

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

2 changes: 1 addition & 1 deletion apps/web/app/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "anasa",
"name": "app",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions deploy/api/api.development.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ FROM python:3.12
WORKDIR /code

# Copy package.json and package-lock.json
COPY ./apps/api/requirements.txt /code/requirements.txt
COPY ./apps/api/app/requirements.txt /code/app/requirements.txt

# Install dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/app/requirements.txt

# Copy the current directory contents into the container at /app
COPY ./apps/api/app /code/app
Expand Down
14 changes: 7 additions & 7 deletions deploy/web/web.development.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
FROM node:20.18-slim

# Set the working directory in the container
WORKDIR /code
WORKDIR /app

# Copy package.json and package-lock.json
COPY ./apps/web/app/package*.json ./app/
COPY ./apps/web/app/package*.json ./

# Install dependencies
RUN npm --prefix ./app install
RUN npm install

# Copy the current directory contents into the container at /app
COPY ./apps/web/app /code/app
COPY ./deploy/web/web.development.run.sh /code/web.run.sh
COPY ./apps/web/app .
COPY ./deploy/web/web.development.run.sh /scripts/web.run.sh

RUN chmod +x /code/web.run.sh
CMD ["/code/web.run.sh"]
RUN chmod +x /scripts/web.run.sh
CMD ["/scripts/web.run.sh"]
2 changes: 1 addition & 1 deletion deploy/web/web.development.run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

echo "WEB - Running in development mode..."

npm --prefix ./app run dev
npm run dev
6 changes: 3 additions & 3 deletions docker-compose.development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ services:
depends_on:
- api
volumes:
- ./apps/web/app:/code/app
- ./apps/web/app/node_modules:/code/app/node_modules
- ./apps/web/app/.next:/code/app/.next
- ./apps/web/app:/app
- /app/node_modules
- /app/.next

volumes:
postgres_data:

0 comments on commit b794dec

Please sign in to comment.