Sign inSign up

ram8545/student-frontend

By ram8545

•Updated about 1 year ago

Image
0

55

ram8545/student-frontend repository overview

ā šŸ“‚ Frontend Repository Structure

frontend/
│── public/                  # Static assets (served as-is, e.g., favicon, images)
│── src/                     # Source code
│   ā”œā”€ā”€ assets/              # Local images, fonts, styles
│   ā”œā”€ā”€ components/          # Reusable UI components
│   ā”œā”€ā”€ pages/               # Page-level components (Home, About, etc.)
│   ā”œā”€ā”€ App.jsx              # Root React component
│   ā”œā”€ā”€ main.jsx             # React DOM render entry point
│── node_modules/            # Installed dependencies
│── Dockerfile               # Docker setup for building & serving app with Nginx
│── index.html               # Main HTML file (entry point for Vite)
│── package.json             # Project metadata, scripts, dependencies
│── package-lock.json        # Exact dependency versions
│── vite.config.js           # Vite configuration (plugins, build options)

ā āš™ļø Key Files

  • package.json → Defines dependencies (react, react-dom, axios) and devDependencies (vite, eslint, etc.).
  • vite.config.js → Configures Vite (bundler & dev server).
  • src/App.jsx → Main app component.
  • src/main.jsx → React entry point; mounts App into index.html.
  • Dockerfile → Multi-stage build (build React app → serve with Nginx).
  • index.html → HTML entry for Vite app.

ā šŸš€ How to Run Locally

# Install dependencies
npm install

# Run development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

⁠🐳 Run with Docker

# Build Docker image
docker build -t react-frontend .

# Run container (map port 3000 to 80 inside container)
docker run -p 3000:80 react-frontend

Open šŸ‘‰ http://localhost:3000

Tag summary

Content type

Image

Digest

sha256:1282a5422…

Size

21.9 MB

Last updated

about 1 year ago

docker pull ram8545/student-frontend