Skip to content

Internship Assignment: ASP.NET Core API 6.0, EF Core ORM, JWT, Nextjs 14, server-action, zustand, tailwindcss

License

Notifications You must be signed in to change notification settings

HiImLawtSimp1e/InternshipProduct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Internship Product

This is my internship project.

You have already installed .NET 6.0 SDK runtime & Node.js 20.0 to run this project

🚀 Quick start

  1. Step 1. Clone the project

    git clone https://github.com/HiImLawtSimp1e/InternshipProduct.git
  2. Step 2.

    • Move to backend
    cd ./InternshipBackend
    • Change connection string to your database in API/appsettings.json & Data/Context
     "ConnectionStrings": {
    "DefaultConnection": "server=localhost\\sqlexpress;database=nextecommerce;trusted_connection=true"
    },
    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer("server=localhost\\sqlexpress;database=nextecommerce; trusted_connection=true;");
        }
    
    • Import database
    add-migration InitialDb
    
    update-database
    
    • Run hosting backend with VS2022
  3. Step 3.

    • Move to frontend
    cd ./internship-frontend
    • Install the project dependencies with:
    npm i
    • Add your cloud name as an environment variable inside .env.local:
    NEXT_PUBLIC_TINYMCE_API_KEY=<Your TinyMCE Key>
    NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME="<Your Cloudinary's Cloud Name>"
    CLOUDINARY_API_KEY="<Your Cloudniary API Key>"
    CLOUDINARY_API_SECRET="<Your Cloundinary API Secret>"
    
    • Start the development server frontend with:
    npm run dev