Skip to content

thjnhlai1308/Capstone-Project-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

  • this is a bare bones fullstack vite-react-express template. follow the steps below for setup

Setup

  • create database
createdb some_db_name

OR

> psql
> CREATE DATABASE some_db_name;
  • install dependencies
npm install && cd client && npm install
  • start express server in root directory of repository
npm run start:dev
  • start vite server in client directory
npm run dev

to test deployment

cd client && npm run build

browse to localhost:3000 (or whatever server port you used)

to deploy

  • build script for deploy
npm install && cd client && npm install && npm run build

  • start script for deploy
node server/index.js

  • environment variables for deployed site
JWT for jwt secret
DATABASE_URL for postgres database

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published