diff --git a/.dockerignore b/.dockerignore
index 6316f30fa..cc5da2130 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,2 +1,3 @@
*/node_modules
-*/dist
\ No newline at end of file
+*/dist
+##
\ No newline at end of file
diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml
new file mode 100644
index 000000000..3a7a0116e
--- /dev/null
+++ b/.github/workflows/build-docs.yml
@@ -0,0 +1,20 @@
+name: Publish docs via GitHub Pages
+on:
+ push:
+ branches:
+ - main
+
+jobs:
+ build:
+ name: Deploy docs
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout main
+ uses: actions/checkout@v1
+
+ - name: Deploy docs
+ uses: mhausenblas/mkdocs-deploy-gh-pages@master
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ CONFIG_FILE: docs/mkdocs.yml
+ EXTRA_PACKAGES: build-base
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 486f3fec7..4ec39805f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,27 +3,34 @@
__pycache__/
*.py[cod]
*$py.class
-frontend/.env.development
+# frontend/.env.development
docs/site/
+mealie/temp/*
+mealie/temp/api.html
+
mealie/data/backups/*
mealie/data/debug/*
mealie/data/img/*
+mealie/data/migration/*
+!mealie/dist/*
#Exception to keep folders
+!mealie/dist/.gitkeep
!mealie/data/backups/.gitkeep
!mealie/data/backups/dev_sample_data*
!mealie/data/debug/.gitkeep
+!mealie/data/migration/.gitkeep
!mealie/data/img/.gitkeep
.DS_Store
node_modules
-/dist
+
# local env files
.env.local
.env.*.local
-.env.development
+
# Log files
npm-debug.log*
@@ -48,7 +55,7 @@ pnpm-debug.log*
env/
build/
develop-eggs/
-dist/
+
downloads/
eggs/
.eggs/
@@ -143,5 +150,3 @@ ENV/
# Node Modules
node_modules/
-
-/*.env.development*
\ No newline at end of file
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 94282cdd5..0445b096a 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -8,9 +8,13 @@
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false,
- "python.testing.pytestEnabled": false,
- "python.testing.promptToConfigure": false,
+ "python.discoverTest": true,
+ "python.testing.pytestEnabled": true,
"cSpell.enableFiletypes": [
+ "!javascript",
"!python"
+ ],
+ "python.testing.pytestArgs": [
+ "mealie"
]
}
diff --git a/Dockerfile b/Dockerfile
index b19242d2e..3edd658ef 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:alpine as build-stage
+FROM node:lts-alpine as build-stage
WORKDIR /app
COPY ./frontend/package*.json ./
RUN npm install
@@ -18,7 +18,12 @@ WORKDIR /app
RUN pip install -r requirements.txt
COPY ./mealie /app
-COPY ./mealie/data/templates/recipes.md /app/data/templates/
+COPY ./mealie/data/templates/recipes.md /app/data/templates/recipes.md
COPY --from=build-stage /app/dist /app/dist
+RUN rm -rf /app/test /app/temp
+
+ENV ENV prod
+
+VOLUME [ "/app/data" ]
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]
\ No newline at end of file
diff --git a/Dockerfile.dev b/Dockerfile.dev
index 7e55d6008..de37b9cc1 100644
--- a/Dockerfile.dev
+++ b/Dockerfile.dev
@@ -3,18 +3,17 @@ FROM python:3
RUN apt-get update -y && \
apt-get install -y python-pip python-dev
-# We copy just the requirements.txt first to leverage Docker cache
COPY ./requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install -r requirements.txt
+RUN pip install pytest
-# COPY ./mealie /app
+COPY ./mealie /app
ENTRYPOINT [ "python" ]
-# TODO Reconfigure Command to start a Gunicorn Server that managed the Uvicorn Server. Also Learn how to do that :-/
-CMD [ "app.py" ]
\ No newline at end of file
+CMD [ "app.py" ]
\ No newline at end of file
diff --git a/README.md b/README.md
index eb4cf0d58..ddf6db3d2 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,6 @@
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
-[![LinkedIn][linkedin-shield]][linkedin-url]
[![Docker Pulls][docker-pull]][docker-pull]
@@ -21,14 +20,21 @@
A Place for All Your Recipes
Explore the docs »
-
+
+
View Demo
·
- Report Bug
+ Report Bug
·
- Request Feature
-
- Report Bug
+ A Place for All Your Recipes
+
+ View Demo
·
- Request Feature
+ Report Bug
+ ·
+ API
+ ·
+
+ Request Feature
+
+ ·
+ Docker Hub
+
- Currently Chowdown via public Repo URL is the only supported type of - migration -
-- Select a theme from the dropdown or create a new theme. Note that the - default theme will be served to all users who have not set a theme - preference. -
-
@@ -57,15 +56,28 @@
+
+ You can import recipes from either a zip file or a directory located in + the /app/data/migraiton/ folder. Please review the documentation to ensure + your directory structure matches what is expected +
++ Choose how Mealie looks to you. Set your theme preference to follow your + system settings, or choose to use the light or dark theme. +
++ Select a theme from the dropdown or create a new theme. Note that the + default theme will be served to all users who have not set a theme + preference. +
+ +