NextSolution.Template
1.0.1
See the version list below for details.
dotnet new install NextSolution.Template::1.0.1
NextSolution - ASP.NET API & Next.js Template 🚀
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.
Table of Contents 📑
- Introduction
- Getting Started
- Backend Installation
- Frontend Installation
- Backend Setup
- Frontend Setup
- Deployment
- Contributing
- Support
- Contact
- License
Introduction 🌟
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.
Getting Started 🚀
Prerequisites 🛠️
Backend Installation ⚙️
- 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
Frontend Installation ⚙️
- Return to the main directory:
cd nextsolution
- Navigate to the frontend directory:
cd NextSolution.WebApp
- Install frontend dependencies:
npm install
Backend Setup 🔧
The backend is organized into different projects for core functionality and infrastructure.
Configuration ⚙️
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.
Authentication 🔑
The template supports user authentication and authorization using ASP.NET Identity. You can configure authentication settings in the Startup.cs
file.
Database 🗄️
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 and SMS 📧📱
Email sending is implemented using MailKit, and the template includes a fake SMS sender for testing.
Frontend Setup 🔨
The frontend is built with Next.js, providing a fast and dynamic user experience.
Scripts 📜
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
Dependencies 📦
The frontend relies on several dependencies, including:
- Next.js
- React
- Axios
- React Hook Form
- Tailwind CSS
- FilePond
- nextui
- libphonenumber-js
- lodash
- ....
Dev Dependencies 🔧
Dev dependencies for the frontend include tools like Prettier, ESLint, and others. Refer to the package.json
file for the complete list.
Deployment 🚀
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.
Contributing 👥
Contributions to this template are welcome. If you encounter issues or have suggestions, please open an issue on the GitHub repository.
Support 🙌
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.
License 📄
This template is licensed under the MIT License.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.