This project is a full-stack application built with React, TypeScript, Vite, and Node.js. It includes a frontend and a backend, both containerized using Docker. Used for the
- Project Structure
- Getting Started
- Running the Application
- Environment Variables
- Linting and Formatting
- License
keys-project/
├── backend/
│ ├── Dockerfile
│ ├── index.ts
│ └── src/
│ ├── routes/
│ ├── controllers/
│ └── models/
├── frontend/
│ ├── Dockerfile
│ ├── src/
│ │ ├── pages/
│ │ ├── components/
│ │ ├── contexts/
│ │ ├── hooks/
│ │ └── utils/
│ ├── public/
│ └── vite.config.ts
├── docker-compose.yaml
└── README.md
- Docker
- Docker Compose
- Node.js (for local development)
- Clone the repository:
git clone https://github.com/zhaxal/keys-project.git
cd keys-project
- Create a
.env
file in the root directory and set the required environment variables:
VITE_BACKEND_URL=http://localhost:3001
MONGO_URL=mongodb://mongo:27017
To run the application using Docker Compose, execute the following command in the root directory:
docker-compose up --build
This will start the frontend on http://localhost:3002
and the backend on http://localhost:3001
.
The following environment variables are used in this project:
VITE_BACKEND_URL
: URL of the backend service for the frontend.MONGO_URL
: MongoDB connection string for the backend.
This project uses ESLint for linting and Prettier for code formatting. The ESLint configuration is located in frontend/eslint.config.js
.
To run the linter, execute:
npm run lint
To format the code, execute:
npm run format
This project is licensed under the MIT License. See the LICENSE file for details.