Welcome to NextSolution, a starter template that combines an ASP.NET API backend with a Next.js frontend. This template provides a foundation for building modern web applications with a powerful backend and a dynamic frontend. Below you'll find details about the template's structure and its key components.
- Introduction
- Getting Started
- Backend Installation
- Frontend Installation
- Backend Setup
- Frontend Setup
- Deployment
- Contributing
- Support
- Contact
- License
NextSolution is a template that brings together an ASP.NET API backend and a Next.js frontend. This combination offers the benefits of a robust backend with ASP.NET and a responsive, interactive frontend using Next.js.
- Clone this repository:
git clone https://github.com/prince272/nextsolution.git
- Navigate to the backend directory:
cd NextSolution.WebApi
- Install backend dependencies:
dotnet restore
- Build and run the backend application:
dotnet run
- Return to the main directory:
cd nextsolution
- Navigate to the frontend directory:
cd NextSolution.WebApp
- Install frontend dependencies:
npm install
The backend is organized into different projects for core functionality and infrastructure.
The backend's configuration is managed through the appsettings.json
file. Update settings such as database connection strings, authentication providers, and email settings based on your project's requirements.
The template supports user authentication and authorization using ASP.NET Identity. You can configure authentication settings in the Startup.cs
file.
The template uses Entity Framework Core for database operations. Database context is configured in the AppDbContext.cs
file, and migrations are managed using Entity Framework's tools.
Email sending is implemented using MailKit, and the template includes a fake SMS sender for testing.
The frontend is built with Next.js, providing a fast and dynamic user experience.
In the NextSolution.WebApp
directory, you can use the following npm scripts:
dev
: Start the development serverdev:ssl
: Start the development server with SSL (useful for testing)start
: Start the production serverlint
: Run ESLintformat:check
: Check code formatting using Prettierformat
: Format code using Prettier
The frontend relies on several dependencies, including:
- Next.js
- React
- Axios
- React Hook Form
- Tailwind CSS
- FilePond
- nextui
- libphonenumber-js
- lodash
- ....
Dev dependencies for the frontend include tools like Prettier, ESLint, and others. Refer to the package.json
file for the complete list.
For deployment, follow standard procedures for deploying an ASP.NET application and a Next.js application. Configure environment-specific settings in the appsettings.json
file and the frontend's environment variables.
Contributions to this template are welcome. If you encounter issues or have suggestions, please open an issue on the GitHub repository.
If you find this template helpful, consider supporting the project by contributing, giving it a star ⭐️ on GitHub, or sharing it with others who might benefit from it.
This template is licensed under the MIT License.