/Notify

Primary LanguageTypeScriptMIT LicenseMIT

NextjsWithAsp Template

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.

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/0Ankit0/fun_projects.git
    cd NextjsWithAsp
  2. Install client-side dependencies:

    cd projectname.client
    npm install
  3. Restore server-side dependencies:

    cd projectname.Server
    dotnet restore

Running the Application

  1. Start the ASP.NET Core server:

    dotnet run
  2. In a separate terminal, start the Next.js development server if it doesn't start automatically:

    cd ClientApp
    npm run dev

Troubleshooting

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

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Acknowledgements