- Front-end: TypeScript + React + CSS
- Back-end: ExpressJS + MySQL
- Change directories into the desired folder to store the files from the repo.
- Ex.
cd Downloads
-
Run the command
git clone https://github.com/Karina528/Capstone-Showcase.git. -
Change directories into the new folder you've just created by using
cd Capstone-Showcase. -
Run the command
npm create vite@latest capstone-showcaseand then select the following options:
- Ignore files and continue
- React
- TypeScript
- Change directories into the capstone-showcase subfolder by using
cd capstone-showcase.
- Note: This is the subfolder inside the repo and NOT the main folder of the repo.
-
Run the following commands:
npm install git fetch --all git reset --hard origin/main npm install react-router-dom@latest -
Run the website by using
npm run dev. -
Open the website in your browser using the Local url.
-
Open a terminal in VS Code and navigate to the project directory.
-
Run the following commands:
cd capstone-showcase cd backend -
Once in the 'backend' directory, run the command
node localServer.js. -
Open a 2nd terminal in VS Code and navigate to the project directory.
-
Run the command
cd capstone-showcase. -
Once in the 'capstone-showcase' directory, run the command
npm run dev. -
Launch the web application in your browser and navigate to any one of the major tabs.
-
Click on the "Survey Form" button to open a new capstone submission form.
-
Enter information as appropriate and click “Submit”.
-
Check the ‘backend’ terminal console for a submission confirmation.
When testing code with backend make sure you use the localhost address, make sure to switch to production address when pushing code to Github