{"id":15681254,"url":"https://github.com/glaucia86/azuresql-prisma-talk","last_synced_at":"2025-05-07T12:11:46.108Z","repository":{"id":40462459,"uuid":"472010888","full_name":"glaucia86/azuresql-prisma-talk","owner":"glaucia86","description":"Talk about Azure SQL + Prisma","archived":false,"fork":false,"pushed_at":"2023-01-11T04:25:16.000Z","size":21171,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T12:11:37.391Z","etag":null,"topics":["azure","azure-functions","azure-sql","azure-sql-database","azure-static-web-apps","javascript","nodejs","serverless","swa-cli","vue","vuejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/glaucia86.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}},"created_at":"2022-03-20T14:51:48.000Z","updated_at":"2023-09-18T14:48:12.000Z","dependencies_parsed_at":"2023-02-09T01:32:53.241Z","dependency_job_id":null,"html_url":"https://github.com/glaucia86/azuresql-prisma-talk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glaucia86%2Fazuresql-prisma-talk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glaucia86%2Fazuresql-prisma-talk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glaucia86%2Fazuresql-prisma-talk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glaucia86%2Fazuresql-prisma-talk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glaucia86","download_url":"https://codeload.github.com/glaucia86/azuresql-prisma-talk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252873903,"owners_count":21817715,"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":["azure","azure-functions","azure-sql","azure-sql-database","azure-static-web-apps","javascript","nodejs","serverless","swa-cli","vue","vuejs"],"created_at":"2024-10-03T16:51:24.009Z","updated_at":"2025-05-07T12:11:46.085Z","avatar_url":"https://github.com/glaucia86.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Talk - Power Up Your BackEnd Applications with Serverless Architecture \u0026 Azure SQL\n\nA demo related with the talk *Power Up Your BackEnd Applications with Serverless Architecture \u0026 Azure SQL* using:\n\n* **Azure SQL**\n* **Prisma**\n* **Vue.Js**\n* **Azure Functions** \n* **Azure Static Web Apps**\n\n## 🚀 Resources Used\n\n- **[Visual Studio Code](https://code.visualstudio.com/?WT.mc_id=javascript-52133-gllemos)**\n- **[Node.js - version 14.x](https://nodejs.org/en/)**\n- **[Postman](https://www.getpostman.com/)**\n- **[Azure Functions Core Tools - version 4.x](https://docs.microsoft.com/azure/azure-functions/functions-run-local?WT.mc_id=javascript-52133-gllemos)**\n- **[Azure SQL](https://azure.microsoft.com/products/azure-sql/database/?WT.mc_id=javascript-52133-gllemos)**\n- **[Azure Free Account](https://azure.microsoft.com/?WT.mc_id=javascript-52133-gllemos)**\n- **[Azure Static Web Apps](https://azure.microsoft.com/services/app-service/static/?WT.mc_id=javascript-52133-gllemos)**\n- **[Azure Functions Vs Code Extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions\u0026WT.mc_id=javascript-52133-gllemos)**\n- **[Prisma Vs Code Extension](https://marketplace.visualstudio.com/items?itemName=Prisma.prisma\u0026WT.mc_id=javascript-52133-gllemos)**\n\n## How to run the application locally?\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eProject: client\u003c/b\u003e\u003c/summary\u003e\n\nTo execute locally this project you will need to follow the steps bellow:\n\n1. First you need to go to the folder: `client` and run the command:\n\n```bash\n\u003e npm install\n```\n2. After to install all the Node.Js packages, now you can execute the command:\n\n```bash\n\u003e npm run serve\n```\n\n3. Now, open your browser on `http://localhost:8080/` \n\n4. Inside the project you will see a file: `src/Api.js`. This file contains all the Back-End request information (local or Azure Functions). If you want to test the Front-End, just choose which url you want to test in the Back-End:\n\n```js\n/**\n * file: src/services/Api.js\n * data: 01/03/2022\n * description: file responsible for initializing 'axios' and HTTP base url requests\n * author: Glaucia Lemos \u003ctwitter: @glaucia_lemos86\u003e\n */\n\nimport axios from 'axios';\n\nexport default () =\u003e axios.create({\n  // =\u003e Back-End (local) 'baseURL'-\u003e will make communication btw Front-End with Back-End\n  // baseURL: 'http://localhost:3001/api/v1',\n\n  // ==\u003e Back-End (azure functions)\n  baseURL: 'http://localhost:7071/api',\n});\n```\n\n- **Back-End (local):** http://localhost:3001/api/v1\n- **Back-End (Azure Functions):** http://localhost:7071/api\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eProject: api\u003c/b\u003e\u003c/summary\u003e\n\n1. First you need to go to the folder: `api` and run the command:\n\n```bash\n\u003e npm install\n```\n\n2. Include the Azure SQL Server connection string creating an `.env` file:\n\n```bash\n# Database connection string\nDATABASE_URL=\"sqlserver://DB_SERVER_NAME.database.windows.net:1433;database=DB_NAME;user=DB_USER@DB_SERVER_NAME;password={PASSWORD};encrypt=true\"\n\n# Shadow database connection string for development\nSHADOW_DATABASE_URL=\"sqlserver://DB_SERVER_NAME.database.windows.net:1433;database=DB_NAME;user=DB_USER@DB_SERVER_NAME;password={PASSWORD};encrypt=true\"\n```\n\n3. Now create a file called: `local.settings.json` (root of the project) and include this information below:\n\n```json\n{\n  \"IsEncrypted\": false,\n  \"Values\": {\n    \"FUNCTIONS_WORKER_RUNTIME\": \"node\",\n    \"AzureWebJobsStorage\": \"\"\n  },\n  \"Host\": {\n    \"LocalHttpPort\": 7071,\n    \"CORS\": \"*\"\n  }\n}\n```\n\n4. Now you can execute the command:\n\n```bash\n\u003e npm run dev\n```\n\nYou will see the message saying the application is running in the port: `http://localhost:7071/api/`\n\n| Objective  |  HTTP Verb |  Route  | \n|---|---|---|\n| CreateEmployee  | POST  | http://localhost:7071/api/employees  | \n| GetEmployees  | GET  | http://localhost:7071/api/employees |   \n| GetEmployee | GET  | http://localhost:7071/api/{id} |   \n| UpdateEmployee  | PUT  | http://localhost:7071/api/{id} |  \n| DeleteEmployee | DELETE  | http://localhost:7071/api/{id} |  \n\n\u003c/details\u003e\n\n## ⭐️ Important Resources\n\n- ✅ **[Oficial Documentation - Azure SQL](https://bit.ly/azure-sql-documentation/)**\n- ✅ **[Free Course Microsoft Learn - Azure SQL](https://bit.ly/mslearn-azuresql-course)**\n- ✅ **[Free Course - Azure SQL for Beginners](https://bit.ly/free-course-azuresql)**\n- ✅ **[Oficial Documentation - Prisma](https://www.prisma.io/docs/)**\n- ✅ **[Prisma Blog](https://www.prisma.io/blog/)**\n- ✅ **[Build serverless, full stack applications in Azure - Free Course](https://docs.microsoft.com/learn/paths/build-serverless-full-stack-apps-azure/?WT.mc_id=javascript-52133-gllemos)**\n- ✅ **[Azure SQL Documentation](https://docs.microsoft.com/azure/azure-sql/azure-sql-iaas-vs-paas-what-is-overview?WT.mc_id=javascript-52133-gllemos)**\n- ✅ **[Microsoft SQL Server Support in Prisma is Production-Ready](https://www.prisma.io/blog/prisma-microsoft-sql-server-azure-sql-production-ga)**\n- ✅ **[Prisma Client CRUD Docs](https://www.prisma.io/docs/concepts/components/prisma-client/crud)**\n- ✅ **[Deploying to Azure Functions Documentation](https://www.prisma.io/docs/guides/deployment/deployment-guides/deploying-to-azure-functions)**\n\n## Questions? Comments? ❓\n\nIf you have any questions about the code developed, feel free to open an **[ISSUE HERE](https://github.com/glaucia86/azure-sql-prisma-vue/issues)**. We'll get back to you soon!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglaucia86%2Fazuresql-prisma-talk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglaucia86%2Fazuresql-prisma-talk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglaucia86%2Fazuresql-prisma-talk/lists"}