Shark Valley Intro blah blah
dotnet sdk version >= 7.x
Download
A Text Editor of your choice (preferably Visual Studio Code):
After Installing dotnet open command prompt and type:
dotnet --version
Result should be something like this:
7.x.x
-
After installing dotnet sdk, travel to root folder in the SharkValleyServer
-
Use the command
dotnet watch
to start the server. -
If not automatically redirected go to
http://localhost:5043/
dotnet dev-certs https --trust
-
Go to link and download SQL Express Server (free version of SQL Server).
-
Open installer in downloads folder.
-
After installing SQL Server Express, download and install SQL Server Management Studio (SSMS)
In order to get the app working we need to create a new database and user with owner privileges to the database.
-
Open SSMS and connect using default authentication (Windows Authentication)
-
Right click Databases folder and add New Databases.
In order to restore the database from the Backup.sql file, you have to right click the database and click New Query. Then, copy the content from the Backup.sql file and paste it inside the query created in SSMS. Then, execute the query. All tables should be created in the database.
- Expand Security folder at root file system and right click Logins folder to add New Login.
- Write a login name and select SQL server authentication.
- Write your new password and confirm it.
- Unselect Enforce password expiration.
- Click User Mapping on left side "Select a page" section.
- Select the database name you created and select db_owner option, then click OK.
Right now we created a new user that has owner privileges in the database that we created before.
Note: You can check the new user if you enter to Security folder and Users in your newly created database.
- Right click on your server and select Properties.
- Select Security and then select SQL Server and Windows Authentication Mode.
- Click OK.
In order to apply this changes we have to restart the server.
- Open SQL Server Configuration Console using Windows search bar.
- Select SQL Server Services.
- Right click SQL Server (running) and click restart.
So far, you should be able to login to the server with the new user using SQL Authentication Mode.
"Server=SERVER_NAME;Database=tDB_NAME;User Id=NEW_USER;Password=PASSWORD;Encrypt=False"
Basically after a new user registers. They have to verify their email. After main admin can give priviliges to edit content, and ti shoudl work the new account.
dotnet run --launch-profile https