This template is a modification of the ReactWithAsp template to use Next.js instead of React. It provides a starting point for building applications with Next.js on the client side and ASP.NET Core on the server side.
-
Clone the repository:
git clone https://github.com/0Ankit0/fun_projects.git cd NextjsWithAsp
-
Install client-side dependencies:
cd projectname.client npm install
-
Restore server-side dependencies:
cd projectname.Server dotnet restore
-
Start the ASP.NET Core server:
dotnet run
-
In a separate terminal, start the Next.js development server if it doesn't start automatically:
cd ClientApp npm run dev
If the client does not run correctly, try deleting the node_modules
folder and reinstalling the packages:
Or see if making the client name in small letter will work.
cd projectname.client
rm -rf node_modules
npm install
Contributions are welcome! Please open an issue or submit a pull request.