fredngo / codepath-web103-fall-2023-lab-2-solution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick Start

Clone this repo:

git clone git@github.com:fredngo/codepath-web103-fall-2023-lab-2-solution.git
cd codepath-web103-fall-2023-lab-2-solution

Install the Server

cd server
npm install
cd ..

Install the Client

cd client
npm install

Build Assets

npm run build

Run the Client

In the same tab, since we're already in the client directory, launch the client:

npm run dev

Run the Server

Open a new tab. Assuming that your terminal manager opens new tab at the same location:

cd ..
cd server

Create an empty .env file:

touch .env

Fill in .env with your database credentials (as discussed in class).

Then:

npm start

Keep both of these tabs open while you're working on the app.

Open the App in Browser

Navigate to localhost:5173 to the the app running.

About


Languages

Language:JavaScript 70.8%Language:CSS 16.8%Language:HTML 12.3%