-
root:
package.json- scripts:
npm run dev- runs both client and server withconcurrentlynpm run client- runs clientnpm run server- runs servernpm run build- builds client and servernpm run install-all- installs all dependencies for root, client, and servernpm run clean- removesdistandnode_modulesfolders
.env- environment variables for client and server
-
server:config/database.ts- database configmiddleware- server middlewarereposiories- classes for different database tables, makes queriesindex.ts- barrel export for all repositories. when you add a repository, add it here. you can import repositories usingimport { repo } from "@repositoriesanywhere in the server
routes- express routesindex.ts- barrel export for all routes. when you add a route, add it here. you can import routes usingimport { route } from "@routesanywhere in the server
types- typescript types for the serverindex.ts- barrel export for all types. when you add a type, add it here. you can import types usingimport { type } from "@typesanywhere in the server- for these barrel exports, make sure you export with
.jsnot.tsor it will throw errors when you build
- for these barrel exports, make sure you export with
server.ts- main server file
-
client:api- axios api functions, call backendtypes- typescript types for the clientindex.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
- psql
- datagrip/pgadmin
- https://portal.azure.com
dist/
server.js
public/
index.html
icon.svg
assets/
...