Skip to content

k0src/COSC-3380-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

project setup

files

  • root:

    • package.json
    • scripts:
      • npm run dev - runs both client and server with concurrently
      • npm run client - runs client
      • npm run server - runs server
      • npm run build - builds client and server
      • npm run install-all - installs all dependencies for root, client, and server
      • npm run clean - removes dist and node_modules folders
    • .env - environment variables for client and server
  • server:

    • config/database.ts - database config
    • middleware - server middleware
    • reposiories - classes for different database tables, makes queries
      • index.ts - barrel export for all repositories. when you add a repository, add it here. you can import repositories using import { repo } from "@repositories anywhere in the server
    • routes - express routes
      • index.ts - barrel export for all routes. when you add a route, add it here. you can import routes using import { route } from "@routes anywhere in the server
    • types - typescript types for the server
      • index.ts - barrel export for all types. when you add a type, add it here. you can import types using import { type } from "@types anywhere in the server
        • for these barrel exports, make sure you export with .js not .ts or it will throw errors when you build
    • server.ts - main server file
  • client:

    • api - axios api functions, call backend
    • types- typescript types for the client
      • index.ts - barrel export for all types.
    • .env.development:
    VITE_MODE=development
    VITE_API_URL=http://localhost:8080/api
    
    • .env.production:
    VITE_MODE=production
    VITE_API_URL=https://cosc-3380.azurewebsites.net/api
    

database

building

dist/
  server.js
  public/
    index.html
    icon.svg
    assets/
      ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages