A User Diary App made with ASP.NET Core and React.
Prerequisite:
- ASP.Net Core 5.0
- You can download it within Visual Studio 2019 by accessing Visal Studio Installer which you can download and install from https://visualstudio.microsoft.com/downloads/
- After installation run Visual Studio Installer, click install and from the options make sure ASP.NET and web development is selected. From there intall it by following the setup instructions.
- Microsoft SQL Express 2018
- You can download and install the express version form the follwing link https://www.microsoft.com/en-us/sql-server/sql-server-downloads and follow the instruction given by the setup.
Development Tools:
- Visual Studio 2019
- Visual Studio 2019 can be installed by first installing Visal Studio Installer which you can download and install from https://visualstudio.microsoft.com/downloads/
- Microsoft SQL Server Management Studio 18.
- Download and install from https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15
Process for running development environment:
- Open the solution of the backend (.sln file) in Visual Studio 2019 IDE.
- Wait for some time to let visual studio to download the required packages automatically.
- Head on to appsettings.json in solution explorer and put your respective server name in the connection string inside
Server = ;
area below. You can generally find it Microsoft SQL Server Management Studio 18 during connecting to a server.
"ConnectionStrings": {
"DefaultConnection": "Server=.\\SQLEXPRESS;Database=DiaryDbDebashish;Trusted_Connection=True;MultipleActiveResultSets=True"
},
- Run the code using
ctrl+F5
or clickingIIS EXPRESS
run button. - Database should be created automatically but if not created then go to
Tools->NuGet Package Manager ->Package Manager Console
and after the console opens, run the commandupdate-database
. This will create the database in your MS SQL server. - The server will start on the url https://localhost:44352 in browser with Swagger UI
Prerequisite:
- Node JS
- To install node js go to https://nodejs.org/en/. The recommended version will do.
- To check if node js is installed or not, open terminal and type
node โv
which will give the version installed in the system.
Development Tools:
- Visual Studio Code
- Install visual studio code from https://code.visualstudio.com/download
- Command Prompt
- Open desired folder and open command promt by typing in
cmd
and pressEnter
in the address bar of explorer
Process for running development environment:
- After installing the prerequisite go to the project folder
frontend
and access command prompt from there. - Use the command
npm install
to install all the packages required. - To run the project type the command
npm start
. - The server will then be started and can be accessed by the url http://localhost:3000