Welcome to the Learnify repository! Follow the steps below to set up and run the project on your local machine.
Before you begin, ensure that you have the following installed on your machine:
- .NET SDK
- Visual Studio Code (or any preferred code editor)
- Git
-
Clone the repository to your local machine:
git clone https://github.com/AntsOrg/learnify.git
or if you are using SSH :
git clone git@github.com:AntsOrg/learnify.git
-
Navigate to the project directory:
cd learnify
-
Restore project dependencies using the following command:
dotnet restore
-
This project involves database - PostgreSQL, setup database and then run:
dotnet ef migrations add InitialMigration dotnet ef database update
-
Start the application with the following command:
dotnet run
-
Open your web browser and navigate to http://localhost:8080 or any port you specified to view the application.
-
If you encounter any issues, check the
appsettings.json
file for configuration settings that may need adjustment based on your local environment. -
Make sure to ignore sensitive information such as database connection strings in the version control system.
-
If you are using Visual Studio Code, ensure that you have the C# extension installed.
-
Remember to exclude unnecessary files from version control (e.g.,
/obj
,/bin
,/Migrations
,.vscode
) by including them in the.gitignore
file.
Happy coding!