English 中文
Hello, here is POYA project, I'm Larry
In fact, my definition of this project is vague, but I have implemented the function of file storage and article publishing in the project, and I would like to add many functions in the future. If you like my project and want to contribute your code (succinctly) >_
null
This is a C#/.NET Core MVC project
(I'm a beginner, bored and uninterested? Actually, it's easy)
. . . , There should be a lot of things to write here, I don't write it much😅 , I think you must know a lot more than I do
0
Rename the appsettings.json.text file (where?) to appsettings.json after git clone it
The contents of appsettings.json are:
{
"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=aspnet-POYA-0E28E843-176D-49F3-9739-6D5E6F1BC3F5;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"Logging": {
"LogLevel": {
"Default": "Warning"
}
},
"AllowedHosts": "*",
"EmailSender": {
"userName": "xxxxxx@xxxxxxxx.xxxx",
"host": "xxxxxx.xxxxx.xxxx",
"password": "xxxxx",
"port": 0,
"enableSsl": false
},
"ErrorLogHandle": {
"ReceiveLogEmailAddress": "xxxxxxx@xxx.xxx"
},
"Administration": {
"AdminEmail": "xxxxxxxxx@xxx.xxx"
},
"IsInitialized":false
}
✔ DefaultConnection >_ The connection string of database, the above is the connection string of the MSSQL, the connection string is "DataSource=app.db" if you use SQLite. You can customize your connection string and modify services.AddDbContext in Startup.cs file accordingly
1(inessential)
You can try it after your appsettings.json is
👌 >_
dotnet build
dotnet run
2(succinctly)
#sh/ps1
cd yourdir
git clone https://github.com/larryw3i/POYA.git
cd POYA/POYA
cp appsettings.json.txt appsettings.json
#modify appsettings.json
dotnet build
dotnet run
. . .
∞
Copyright (c) 2019 Larry Wei
Licensed under the MIT License