Skip to content
 
 

Repository files navigation

Project 3 Gang 83

Deploy Lint and Type-Check

Frontend:

Render Status

Backend:

Render Status

Links

Deployed Site

Scrum Board

Backend

This template should help get you started developing with Vue 3 in Vite.

Environment

Both the frontend and backend require .env files.

Frontend

There should be a .env file in the frontend directory with the following contents:
VITE_API_HOST=: "http://localhost" for local testing or "https://project3-gang-83-opoi.onrender.com" for testing with the deployed backend
VITE_API_PORT=: 3000 for local testing or 443 for testing with the deployed backend

Backend

There should be a .env file in the backend directory with the following contents:
DB_NAME=: PostgreSQL database name
DB_USERNAME=: PostgreSQL username
DB_PASSWORD=: PostreSQL database password
DB_HOST=: host of PostgreSQL database
DB_PORT=5432

Running the Application

This application consists of a backend and a frontend, both of which must run for the app to be functional. The backend should be run first.

Backend

Enter the backend directory by running cd backend.

Run npm install if you haven't recently.

Development

npm run dev

Production

npm run build npm start

Frontend

Enter the frontend directory by running `cd frontend``.

Run npm install if you haven't recently.

Development

npm start

Production

npm run build will put the built files into the dist directory. The dist directory can then be statically served.

Recommended IDE Setup

VS Code + Vue (Official) (and disable Vetur).

Recommended Browser Setup

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint

About

A Point of Sale system for Share Tea me and my team made for my CSCE 331 class

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages