restructure project with seperate app/ and notebooks/ sub directories
This commit is contained in:
1 parent
2ac6ac005a
commit
d5da086e66
16 files changed
+40
-14
No files matched your search
Generated
+13
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module external.system.id="pyproject.toml" type="PYTHON_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$/api">
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/api/.venv" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="jdk" jdkName="~\repos\museum_analytics\api\.venv" jdkType="Python SDK" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
<component name="PyDocumentationSettings">
|
||||||
|
<option name="format" value="GOOGLE" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
@@ -25,6 +25,6 @@ This project uses environment variables to secure sensitive information. Follow
|
|||||||
```
|
```
|
||||||
3. Build and start the museum analytics server with docker:
|
3. Build and start the museum analytics server with docker:
|
||||||
```Bash
|
```Bash
|
||||||
cd ./museum_analytics
|
cd ./api
|
||||||
docker build --network=host --no-cache -t museum-analytics-server .
|
docker build --network=host --no-cache -t museum-analytics-server .
|
||||||
```
|
```
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
.git
|
||||||
|
../.idea
|
||||||
|
.venv
|
||||||
|
**/__pycache__
|
||||||
|
**/.ipynb_checkpoints
|
||||||
|
**/*.pyc
|
||||||
|
api/app/.env
|
||||||
|
api/app/exp
|
||||||
|
*.ipynb
|
||||||
@@ -16,7 +16,7 @@ COPY pyproject.toml poetry.lock ./
|
|||||||
RUN --mount=type=cache,target=/root/.cache/pypoetry \
|
RUN --mount=type=cache,target=/root/.cache/pypoetry \
|
||||||
poetry install --only main --no-root --no-ansi
|
poetry install --only main --no-root --no-ansi
|
||||||
|
|
||||||
COPY . .
|
COPY .. .
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
CMD ["uvicorn", "museum_analytics.museum_api:app", "--host", "0.0.0.0", "--port", "8000"]
|
CMD ["uvicorn", "app.museum_api:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
|
500 Internal Server Error
An error occurred: An error occurred Gitea Version: 28.0.0 |