Giter VIP home page Giter VIP logo

hsm's Introduction

hsms

HSM

Thành viên:

  • Nguyễn Văn Tuấn(18521606)

Cài đặt:

1. .NET Core

  • Chạy SQL Server
  • Cập nhật connectionString phù hợp với SQL Server
    • HighSchoolManagerAPI/appsettings.json: Thêm vào "ConnectionStrings"
      "ConnectionStrings": {
        "stringname":
          "
          Server=127.0.0.1;
          Database=HighSchoolDb;
          User ID=USERNAME;
          Password=PASSWORD;
          MultipleActiveResultSets=true
          "
       }
      
    • HighSchoolManagerAPI/Startup.cs: Line 50 thay tên thành stringname đã đặt như trên
      Configuration.GetConnectionString("stringname")
  • Cài đặt .NET Core 3.0
  • Cài đặt Entity Framework Core .NET Command-line Tools
    dotnet tool install --global dotnet-ef
  • Mở Terminal (PowerShell nếu là Windows) và đi đến thư mục src/HighSchoolManagerAPI
    cd ./HSM/src/HighSchoolManagerAPI
    
  • Chạy câu lệnh sau để cập nhật database với các entity
    dotnet ef database update --context Infrastructure.Persistence.HighSchoolContext
    
  • Build solution
    cd ../
    dotnet build

2. React

  • Cài đặt Node.js
  • Đi đến thư mục HighSchoolManagerFE
    cd ./HighSchoolManagerFE
    
  • Chạy lệnh sau để thực hiện cài đặt, cập nhật các package
    npm install
    

Thực thi:

  • Chạy server .NET Core (Lần chạy đầu tiên khá lâu do phải seed data)
    cd ../HighSchoolManagerAPI
    dotnet run
  • Chạy server React
    cd ../HighSchoolManagerFE
    npm start
    
  • Truy cập bằng browser
    127.0.0.1:3000 (Không dùng localhost:3000)
    
  • Đăng nhập bằng tài khoản mặc định
    username: admin
    password: 123456
    

README viết bởi Nguyễn Văn Tuấn

hsm's People

Contributors

tua2 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.