Make sure you have the following installed on your development machine:
- Node.js (version 16 or above)
- pnpm (package manager)
Follow these steps to get started with the Firepit Frontend:
-
Clone the repository:
git clone https://github.com/EZCampusDevs/firepit-frontend.git
-
Navigate to the project directory:
cd firepit-frontend
-
Install the dependencies:
pnpm install
-
Start the development server:
pnpm dev
pnpm dev
- Starts the development server.pnpm build
- Builds the production-ready code.pnpm lint
- Runs ESLint to analyze and lint the code.pnpm preview
- Starts the Vite development server in preview mode.
Exports NODE_ENV environ. variable to that, so the process.env.NODE_ENV can be detected for local development
Linux & OSX
export NODE_ENV=development
Windows
set NODE_ENV=development
Testing cmd for building docker image
docker build -t firepit_frontend_test -f ./Dockerfile .
Without cache (Clean Image Build)
docker build --no-cache -t firepit_frontend_test -f ./Dockerfile .
Testing container that: -it & --rm (Puts you into shell upon spin up, and upon exit, auto remove container!)
docker run -it --rm -p 8181:80 --name temp_container firepit_frontend_test