{"id":26682426,"url":"https://github.com/spaceshaman/full-stack-fastapi-nuxt-jwt-auth-orm-free-template","last_synced_at":"2026-04-04T21:32:56.106Z","repository":{"id":284216251,"uuid":"922204826","full_name":"SpaceShaman/full-stack-fastapi-nuxt-jwt-auth-orm-free-template","owner":"SpaceShaman","description":"ORM Free Full Stack, modern web application template. Using FastAPI, Nuxt.js, JWT Authentication, SQLite, Docker compose and more. ","archived":false,"fork":false,"pushed_at":"2025-03-24T19:20:46.000Z","size":1139,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T19:33:53.925Z","etag":null,"topics":["backend","docker","docker-compose","fastapi","frontend","full-stack","fullstack","jwt","jwt-auth","jwt-authentication","jwt-token","nuxt","nuxt3","nuxtjs","python","python3","sqlite","sqlite3","template","typescript"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpaceShaman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-25T15:45:58.000Z","updated_at":"2025-03-24T19:20:39.000Z","dependencies_parsed_at":"2025-03-24T19:44:39.457Z","dependency_job_id":null,"html_url":"https://github.com/SpaceShaman/full-stack-fastapi-nuxt-jwt-auth-orm-free-template","commit_stats":null,"previous_names":["spaceshaman/full-stack-fastapi-nuxt-jwt-auth-orm-free-template"],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceShaman%2Ffull-stack-fastapi-nuxt-jwt-auth-orm-free-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceShaman%2Ffull-stack-fastapi-nuxt-jwt-auth-orm-free-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceShaman%2Ffull-stack-fastapi-nuxt-jwt-auth-orm-free-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpaceShaman%2Ffull-stack-fastapi-nuxt-jwt-auth-orm-free-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpaceShaman","download_url":"https://codeload.github.com/SpaceShaman/full-stack-fastapi-nuxt-jwt-auth-orm-free-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245615024,"owners_count":20644378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","docker","docker-compose","fastapi","frontend","full-stack","fullstack","jwt","jwt-auth","jwt-authentication","jwt-token","nuxt","nuxt3","nuxtjs","python","python3","sqlite","sqlite3","template","typescript"],"created_at":"2025-03-26T08:19:46.336Z","updated_at":"2025-12-30T20:34:08.488Z","avatar_url":"https://github.com/SpaceShaman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Full Stack FastAPI Nuxt.js JWT Auth ORM Free Template\n\n[![GitHub License](https://img.shields.io/github/license/SpaceShaman/full-stack-fastapi-nuxt-jwt-auth-orm-free-template)](https://github.com/SpaceShaman/full-stack-fastapi-nuxt-jwt-auth-orm-free-template?tab=MIT-1-ov-file)\n[![Tests](https://img.shields.io/github/actions/workflow/status/SpaceShaman/full-stack-fastapi-nuxt-jwt-auth-orm-free-template/deploy.yml?label=tests)](https://github.com/SpaceShaman/full-stack-fastapi-nuxt-jwt-auth-orm-free-template/blob/master/.github/workflows/tests.yml)\n[![Codecov](https://img.shields.io/codecov/c/github/SpaceShaman/full-stack-fastapi-nuxt-jwt-auth-orm-free-template)](https://codecov.io/gh/SpaceShaman/full-stack-fastapi-nuxt-jwt-auth-orm-free-template)\n[![Python](https://img.shields.io/badge/language-Python-yellow?logo=python\u0026logoColor=yellow)](https://www.python.org/)\n[![TypeScript](https://img.shields.io/badge/language-TypeScript-yellow?logo=typescript\u0026logoColor=yellow)](https://www.typescriptlang.org/)\n[![FastAPI](https://img.shields.io/badge/framework-FastAPI-green?logo=fastapi\u0026logoColor=green)](https://fastapi.tiangolo.com/)\n[![Nuxt.js](https://img.shields.io/badge/framework-Nuxt-green?logo=nuxt.js\u0026logoColor=green)](https://nuxt.com/)\n[![Docker](https://img.shields.io/badge/technology-Docker-blue?logo=docker\u0026logoColor=blue)](https://www.docker.com/)\n[![Docker Compose](https://img.shields.io/badge/technology-Docker%20Compose-blue?logo=docker\u0026logoColor=blue)](https://docs.docker.com/compose/)\n[![Poetry](https://img.shields.io/badge/technology-Poetry-blue?logo=python\u0026logoColor=blue)](https://python-poetry.org)\n[![Pydantic](https://img.shields.io/badge/technology-Pydantic-blue?logo=pydantic\u0026logoColor=blue)](https://docs.pydantic.dev)\n[![Tailwind CSS](https://img.shields.io/badge/styling-Tailwind%20CSS-blue?logo=tailwind-css\u0026logoColor=blue)](https://tailwindcss.com/)\n[![daisyUI](https://img.shields.io/badge/styling-daisyUI-blue?logo=daisyui\u0026logoColor=blue)](https://daisyui.com/)\n[![VeeValidate](https://img.shields.io/badge/validation-VeeValidate-blue?logo=vee-validate\u0026logoColor=blue)](https://vee-validate.logaretm.com)\n[![Yup](https://img.shields.io/badge/validation-Yup-blue?logo=yup\u0026logoColor=blue)](https://yup-docs.vercel.app/)\n[![Jinja](https://img.shields.io/badge/templating-Jinja-blue?logo=jinja\u0026logoColor=blue)](https://jinja.palletsprojects.com/)\n[![JWT](https://img.shields.io/badge/authentication-JWT-blue?logo=json-web-tokens\u0026logoColor=blue)](https://jwt.io/)\n[![Pytest](https://img.shields.io/badge/testing-Pytest-red?logo=pytest\u0026logoColor=red)](https://docs.pytest.org/)\n[![SQLite](https://img.shields.io/badge/database-SQLite-lightgrey?logo=sqlite\u0026logoColor=blue)](https://www.sqlite.org/)\n[![SQLift](https://img.shields.io/badge/migration-SQLift-purple)](https://github.com/SpaceShaman/SQLift)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-black)](https://github.com/psf/black)\n[![Linting: Ruff](https://img.shields.io/badge/linting-Ruff-black?logo=ruff\u0026logoColor=black)](https://github.com/astral-sh/ruff)\n[![Code formatter: Prettier](https://img.shields.io/badge/code%20formatter-Prettier-ff69b4)](https://prettier.io/)\n[![Linting: ESLint](https://img.shields.io/badge/linting-ESLint-4B32C3)](https://eslint.org/)\n\n## Technology Stack and Features\n\n### Backend\n\n- ⚡ [**FastAPI**](https://fastapi.tiangolo.com) as the backend framework.\n- 📦 Dependency management with [**Poetry**](https://python-poetry.org).\n- 🐶 Code linting using [**Ruff**](https://github.com/astral-sh/ruff).\n- 📝 Data validation with [**Pydantic**](https://docs.pydantic.dev).\n- 🗃 [**SQLite**](https://www.sqlite.org) as the database.\n- 🆓 **ORM free** approach using raw SQL queries with the repository pattern.\n- 🛠 Database migrations with [**SQLift**](https://github.com/SpaceShaman/SQLift).\n- 🔑 **JWT** (JSON Web Token) authentication.\n- 📝 Registration with email based account activation.\n- 🔒 Secure password hashing.\n- 📫 Password recovery via email.\n- 📧 SMTP integration for sending emails.\n- ✉️ Email templates using Jinja.\n- ✅ Unit testing with [**Pytest**](https://pytest.org).\n\n### Frontend\n\n- 🚀 [**Nuxt.js**](https://nuxt.com) as the frontend framework.\n- 🟦 [**TypeScript**](https://www.typescriptlang.org) for static type checking.\n- 🖌 Code formatting with [**Prettier**](https://prettier.io).\n- ✨ Code linting using [**ESLint**](https://eslint.org).\n- 🎨 Styling with [**TailwindCSS**](https://tailwindcss.com).\n- 🧩 Ready-to-use components from [**daisyUI**](https://daisyui.com).\n- 🔐 Middleware for authentication handling.\n- 📝 Form validation with [**VeeValidate**](https://vee-validate.logaretm.com) and [**Yup**](https://yup-docs.vercel.app/).\n- 🎨 Theme selector with 32 themes from [**daisyUI**](https://daisyui.com).\n- 🚨 Utility functions for alerts and notifications.\n    - ❌ Call `showErrorAlert('message')` to show an error message.\n    - ✅ Call `showSuccessAlert('message')` to show a success message.\n    - 💡 Call `showInfoAlert('message')` to show an info message.\n    - ⚠️ Call `showWarningAlert('message')` to show a warning message.\n\n### CI/CD\n\n- 🔄 CI/CD pipeline with GitHub Actions.\n- 🧪 Automated testing before deployment.\n- 📊 Code coverage reporting with [**Codecov**](https://about.codecov.io)\n- 🚀 Ready-to-use workflow configurations in [.github/workflows/](.github/workflows/)\n\n### Deployment\n\n- 🚢 Deployment instructions using [**Docker Compose**](https://docs.docker.com/compose).\n- 🚦 [**Traefik**](https://doc.traefik.io/traefik) as a reverse proxy.\n\n## Screenshots\n\n### Login Page\n\n![Login](img/login.png)\n![Login](img/login-dark.png)\n\n### Register Page\n\n![Register](img/register.png)\n\n### Password Recovery\n\n![Password Recovery](img/password-recovery.png)\n\n### Theme Selector\n\n![Theme Selector](img/theme-selector.png)\n\n### Alerts and Toasts\n\n![Alerts and Toasts](img/alerts-and-toasts.png)\n\n### Validation\n\n![Validation](img/validation.png)\n\n### Simple Dashboard\n\n![Dashboard](img/dashboard.png)\n\n### Activation Email\n\n![Activation Email](img/activation-email.png)\n\n## How To Use It\n\nYou can **just fork or clone** this repository and use it as is.\n\n✨ It just works. ✨\n\n### Configure\n\nYou need to configure the environment variables to set your own values.\nYou can copy the example `.env` files:\n\n```bash\ncp .env.default .env\n```\n\nAnd then edit the `.env` file and set your own values.\n\n### Run\n\n#### Run in development environment\n\n```bash\ndocker-compose -f docker-compose.dev.yml up\n```\n\n#### Run in production environment\n\n```bash\ndocker-compose up\n```\n\n### CI/CD configuration\n\nThis project has a CI/CD pipeline with GitHub Actions.\nYou can see the workflow configuration in [.github/workflows/](.github/workflows/).\nTo use it, you need to set the following secrets in your repository settings:\n\n```bash\nCODECOV_TOKEN   # Your Codecov token\nHOST            # Your SSH host\nSSH_KEY         # Your SSH private key\nUSERNAME        # Your SSH username\n```\n\n### Comunication between FastAPI and Nuxt.js\n\nThe communication between FastAPI and Nuxt.js is done via plugin `api' which is located in [frontend/app/plugins/api.ts](frontend/app/plugins/api.ts).\nThis plugin uses the [$fetch](https://nuxt.com/docs/getting-started/data-fetching) to make requests to the FastAPI backend.\nYou can use this plugin in two ways:\n\n#### Like useFetch\n\n```typescript\nconst { data: users } = await useAPI\u003cUser[]\u003e('/users', {\n    method: 'get',\n    ...\n})\n```\n\n#### Like $fetch\n\n```typescript\nawait useNuxtApp().$api\u003c{ token: string }\u003e('/auth/login', {\n    method: 'POST',\n    ...\n})\n```\n\n## License\n\nThis project is licensed under the terms of the [MIT license](/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaceshaman%2Ffull-stack-fastapi-nuxt-jwt-auth-orm-free-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspaceshaman%2Ffull-stack-fastapi-nuxt-jwt-auth-orm-free-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaceshaman%2Ffull-stack-fastapi-nuxt-jwt-auth-orm-free-template/lists"}