This repository contains a full-stack JavaScript application with a React front-end created with Vite, and an Express.js back-end.
/web- Contains the ReactJS Vite application./api- Contains the ExpressJS API.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Make sure you have Node.js installed on your system (the version should be compatible with what is defined in the package.json files). You can check your Node.js version by running node -v in the terminal.
First, clone the repository to your local machine:
git clone https://github.com/your-username/your-repo-name.git
cd your-repo-nameLocated in the /api directory, this is a basic starter for an Express.js API.
Run the following commands to set up and start the API:
cd api
npm install
npm run devThe npm run dev command will start the Express server with nodemon, watching for changes.
To run tests and lint your code:
npm test
npm run lintLocated in the /web directory, hot-dog-hunt is a React application using Vite.
Run these commands to install dependencies and start the development server:
cd web
npm install
npm run devThe npm run dev command starts the Vite dev server, typically on http://localhost:5173.
For a production build:
npm run buildTo lint your code:
npm run lintTo build both applications for production, run the build commands in their respective directories.
cd api
npm run buildcd web
npm run buildThis project is licensed under the MIT License - see the LICENSE file for details.
- ChatGPT for helping me learn JSX