Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How configure on SqlServer #8

Closed
mtugnoli opened this issue Jul 2, 2019 · 3 comments
Closed

How configure on SqlServer #8

mtugnoli opened this issue Jul 2, 2019 · 3 comments

Comments

@mtugnoli
Copy link

mtugnoli commented Jul 2, 2019

Great project !

How configure on SqlServer ?
Have a migration procedure ?
PS: it would be great if it had language management

@iamoldli
Copy link
Owner

iamoldli commented Jul 2, 2019

In src/WebHost/conifg/db.json file,the Dialect property can configure database type,

0:SqlServer 1:MySql 2:SQLite

{
  "Logging": true,
  "Connections": [
    {
      "Name": "Admin",
      "Dialect": 0,
      "Database": "Nm_Admin",
      "ConnString": "Server=.;Database=Nm_Admin;Uid=sa;Pwd=sa;MultipleActiveResultSets=true;"
    },

@mtugnoli
Copy link
Author

mtugnoli commented Jul 2, 2019

Thank you for your answer, but how create tables ?
I try to run on Visual Studio 2019 (in debug mode), but I see only a blank page
on http://localhost:5000/api/values

@iamoldli
Copy link
Owner

iamoldli commented Jul 2, 2019

You should create the database first, the database file is in data directory,for sqlserver:data\SqlServer

Because the project is Front-end and Back-end separation, so you have to start the Front-end and back-end .

For Back-end, you can start the WebHost in visual studio, or open WebHost directory and powershell ,run dotnet watch run,then you can open http://localhost:6220/swagger/index.html and see the api document.

For Front-end, you need had install node.js, then open WebUI directory and run the following command

npm install
npm run serve

now, open http://localhost:5220

My English is not very good, please forgive me~

@iamoldli iamoldli closed this as completed Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants