next-enterprise/README.md

66 lines
2.1 KiB
Markdown
Raw Normal View History

2024-03-05 19:01:40 -05:00
# Document Upload App with Next.js
2023-03-25 16:53:07 +01:00
2024-03-05 19:01:40 -05:00
This project is built on the robust foundation of the Next.js Enterprise Boilerplate by Blazity, tailored for a document upload application. It demonstrates advanced usage of Next.js, Formik for form management, Tailwind CSS for styling, and includes comprehensive testing with Jest and Playwright. This README guides you through the project setup, features, and deployment.
2024-01-18 22:42:13 +01:00
## Features
2023-04-21 17:04:33 +02:00
2024-03-05 19:01:40 -05:00
- **Next.js**: Leveraging the latest features of Next.js for SSR and static generation.
- **Tailwind CSS**: Utilizing Tailwind for rapid and responsive UI development.
- **Formik**: Streamlined form handling with validation and custom input components.
- **Playwright**: End-to-end testing to ensure reliability and functionality.
- **Radix UI**: Utilizing Radix UI for accessible and customizable components.
- **Tailwind Merge**: Efficiently managing Tailwind CSS classes.
- **TypeScript**: Ensuring type safety and developer productivity.
2024-03-05 19:01:40 -05:00
## Getting Started
2023-04-21 17:04:33 +02:00
2024-03-05 19:01:40 -05:00
To run this project locally, follow these steps:
2023-04-21 17:04:33 +02:00
2024-03-05 19:01:40 -05:00
1. Clone the repository:
2023-04-21 17:04:33 +02:00
```bash
2024-03-05 19:01:40 -05:00
git clone https://github.com/vasquezjesus2710/next-enterprise
cd next-enterprise
2023-04-21 17:04:33 +02:00
```
2024-03-05 19:01:40 -05:00
2. Install Dependencies
2023-04-21 17:04:33 +02:00
```bash
2024-03-05 19:01:40 -05:00
yarn install
2023-04-21 17:04:33 +02:00
```
2024-03-05 19:01:40 -05:00
3. Start the development server
2023-03-25 16:53:07 +01:00
2023-04-19 20:41:22 +02:00
```bash
yarn dev
2023-03-25 16:53:07 +01:00
```
2024-03-05 19:01:40 -05:00
Visit [http://localhost:3000](http://localhost:3000) to view the application.
2023-04-21 17:04:33 +02:00
2024-03-05 19:01:40 -05:00
## Project Structure
2023-04-21 17:04:33 +02:00
2024-03-05 19:01:40 -05:00
- **components/**: Reusable UI components, including custom Formik inputs.
- **pages/**: Application pages and the API endpoint for form submission.
- **public/**: Static assets like images and fonts.
- **styles/**: Global styles and Tailwind configuration.
- **tests/**: Jest unit tests and Playwright end-to-end tests.
- **utils/**: Utility functions and helpers.
2023-04-21 17:04:33 +02:00
2024-03-05 19:01:40 -05:00
**Testing**
2023-04-21 17:04:33 +02:00
2024-03-05 19:01:40 -05:00
This project includes both unit and integration tests with Jest and end-to-end tests with Playwright:
2023-04-21 17:04:33 +02:00
2024-03-05 19:01:40 -05:00
- Run unit and integration tests:
`yarn test`
2023-04-21 17:04:33 +02:00
2024-03-05 19:01:40 -05:00
- Run end-to-end tests:
2023-04-21 17:04:33 +02:00
```bash
2024-03-05 19:01:40 -05:00
yarn e2e:headless # For headless testing
yarn e2e:ui # For UI testing
```
2024-01-18 23:04:39 +01:00
2024-03-05 19:01:40 -05:00
## Acknowledgments
2024-01-18 23:04:39 +01:00
2024-03-05 19:01:40 -05:00
Built on the [Next.js Enterprise Boilerplate](https://github.com/Blazity/next-enterprise) by Blazity.