Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hiimlawtsimp1e/internshipproduct

ASP.NET API & EF Core 6.0, JWT, Nextjs 14, server-action, zustand, tailwindcss
https://github.com/hiimlawtsimp1e/internshipproduct

asp-net-core asp-net-core-web-api c-sharp dependency-injection eav-model ef-core jwt n-layer-architecture net-6-0 nextjs nextjs14 repository-pattern server-actions tailwindcss typescript zustand

Last synced: 2 months ago
JSON representation

ASP.NET API & EF Core 6.0, JWT, Nextjs 14, server-action, zustand, tailwindcss

Awesome Lists containing this project

README

        

# 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
```sh
git clone https://github.com/HiImLawtSimp1e/InternshipProduct.git
```
1. **Step 2.**
* Move to backend
```sh
cd ./InternshipBackend
```
* Change connection string to your database in `API/appsettings.json` & `Data/Context`
```sh
"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
1. **Step 3.**
* Move to frontend
```sh
cd ./internship-frontend
```
* Install the project dependencies with:
```sh
npm i
```
* Add your cloud name as an environment variable inside `.env.local`:

```
NEXT_PUBLIC_TINYMCE_API_KEY=
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=""
CLOUDINARY_API_KEY=""
CLOUDINARY_API_SECRET=""
```
* Start the development server frontend with:
```
npm run dev
```