This repository is a template for creating a full-stack application using Node.js, React, TypeScript, and Docker. It provides a minimal setup for both the frontend and backend, containerized using Docker, to help you get started quickly.
Features
- Frontend: Built with React and TypeScript, bundled using Vite for fast development.
- Backend: RESTful API built with Node.js, TypeScript, Express, and Mongoose.
- Docker: Containerized setup for both frontend and backend to ensure consistent environments across different setups.
- Linting: ESLint configuration for TypeScript and React to maintain code quality.
Prerequisites
- A Code Editor and Terminal of your choice
- Node.js
- Docker
- npm, pnpm or yarn
Getting Started
- Clone the Repository
- Install Dependencies For the Frontend
For the Backend
Running the Application
- Using Docker Build and run the Docker containers:
Access the frontend at http://localhost:3000.
- Without Docker
Start the backend server:
Start the frontend development server:
Access the frontend at http://localhost:3000.
Project Structure
Configuration
-
Frontend: Configuration files are located in the client/ directory.
-
Backend: Configuration files are located in the server/ directory.
-
Environment Variables: Rename the .env.template to .env in the root directory and enter your details
-
Linting To run the linter for both frontend and backend:
Contributing
Contributions are welcome! Please fork the repository and submit a pull request for any changes.
License
This project is licensed under the MIT License.