Skip to content

abixb/culvers-demo-app-codebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a 'demo' restaurant project, for my interview prep. (Abi)

Hi, I'm Abi. This project was created with Node.js, GraphQL, Microsoft SQL (Azure SQL), Next.js and Apollo Client/Server (for GraphQL). Code editor used was Visual Studio, though I made extensive use of Cursor AI (an AI-powered code editor build on top of VS Code) for building out the frontend -- for massive efficiency gains.

I also made use of OpenAI's cutting-edge "Codex" AI agent for some of the work flows, including API integration and cleaning up unneeded packages in package-lock.json.

The structure contains a demo Azure Functions backend (culvers-order-demo-backend) and a Next.js frontend (culvers-order-demo-frontend).

Requirements

Navigate to the package you want to run (e.g. culvers-order-demo-backend) and run:

npm install
npm run build
npm test
npm start (or func start)

npm start launches the Azure Functions runtime locally.

Environment Variables

The backend expects the following variables, typically supplied via a local.settings.json file:

  • DB_USER – database username
  • DB_PASSWORD – database password
  • DB_DATABASE – database name
  • DB_SERVER – hostname of the SQL server
  • DB_PORT – TCP port (default 1433)
  • DB_ENCRYPTtrue to enable encryption

Sample local.settings.json

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "",
    "FUNCTIONS_WORKER_RUNTIME": "node",
    "DB_USER": "your-user",
    "DB_PASSWORD": "your-password",
    "DB_DATABASE": "your-db",
    "DB_SERVER": "localhost",
    "DB_PORT": "1433",
    "DB_ENCRYPT": "false"
  }
}

Place this file in the culvers-order-demo-backend directory when running locally.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •