GithubHelp home page GithubHelp logo

httt_kntc's Introduction

WebBaseMono

web base theo mô hình monolihic gồn auth server dùng ABP Framework,.net 6 và angular 14

Cài đặt

  1. Net 6 SDK: https://dotnet.microsoft.com/en-us/download/dotnet/6.0

  2. Node.js <= 16.1: https://nodejs.org/en/
  3. Angular/Cli 14
npm i -g @angular/cli@14
  1. yarn
npm i -g yarn
  1. Redis: https://redis.io/docs/getting-started/installation/install-redis-on-windows/ Nếu cài trên widow chạy nhân linux WSL2 thì cần cài:
  1. Visual Studio 2022
  2. Visual Studio Code
  3. Sql Server 2019
  4. ABP CLi:
dotnet tool install -g Volo.Abp.Cli
  1. Công cụ quản lý redis AnotherRedisDesktopManager: https://gitee.com/qishibo/AnotherRedisDesktopManager/releases

Môi trường dev

I. Chạy FE:

cd scr/client
yarn
ng s -o --port 4201

II. Chạy BE:

  1. Chạy redis sserver: mở ứng dụng Ubuntu
sudo service redis-server start
  1. Fix lỗi không tháy thư viện
cd src\aspnet-core\src\WebBase.AuthServer
abp install-libs
  1. Trong Visual Studio > tools > NUGet package manager
update-database
  1. Chạy dự án DbMigrator để Seed data
  2. Chạy setup run multi project
  • AuthServer: 5101
  • ApiHost: 5102
  • Tài khoản: admin, mật khẩu: Admin@123

Clear redis cache

redis-cli flushall

Dùng công cụ AnotherRedisDesktopManager Admin-preview

Generate proxy Frontend

cd scr/client
abp generate-proxy -t ng

lẫn .net 6 vs mấy chỗ cũ? chạy lệnh dotnet restore cho mấy dự án là ok

1 cậu kiểm tra xem c có changes gì không nếu có thì undo hết 2 pull code 3 drop db dùng ssms cho nhanh 4 chạy update-database 4 run project DBMigration 6 vào thư mục git vào scripts chạy lần lượt 3 file sql là xong còn 1 bước nữa là clear cache đi không là k đăng nhập được ubuntu redis-cli flushall

httt_kntc's People

Contributors

haitc21 avatar thantien78 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.