How to Run
π¦ Requirements
.NET SDK: .NET 9.0 SDK installed
Node.js & npm: Node.js β₯16 with npm
Database: Microsoft SQL Server (local or cloud)
Docker (optional): Docker Engine & Docker Compose installed
π API Keys
π» OneCompiler (for code execution)
OneCompiler is used to run code against test cases in problem-solving questions.
To obtain a free API key:
Sign up for a free account at RapidAPI
Navigate to the OneCompiler API Playground
Copy your API key from the
X-RapidAPI-Key
section
π€ Gemini (for AI interaction)
Gemini is used to power AI-based features in the platform.
To obtain a free API key:
Visit Google AI Studio
Generate and copy your Gemini API key
π§ Gmail SMTP
To use Gmail's SMTP server, you need to create an App Password because Gmail requires 2-Step Verification for enhanced security.
To generate an App Password:
Enable 2-step verification on your Google account
Generate the 16-character app password from app password
β οΈ Important: Use this App Password instead of your regular Gmail password when configuring SMTP settings.
π οΈ Steps to Run
π Run Locally
Clone the repository
git clone https://github.com/Learnathon-By-Geeky-Solutions/elite-programmers.git
cd elite-programmers
π₯Clone the latest version
git clone https://github.com/Raofin/TrueTest.git
cd TrueTest
Configure
Backend
Use the following Commands to store the credentials in user secrets π
cd src/api/ops.api dotnet user-secrets set "EmailSettings:Email" "" dotnet user-secrets set "EmailSettings:Password" "" dotnet user-secrets set "OneCompilerSettings:ApiKey" "" dotnet user-secrets set "GoogleCloudSettings:FolderId" "" dotnet user-secrets set "GeminiSettings:ApiKey" ""
Frontend
cp .env.example .env.local
Build & Run
Backend
dotnet restore dotnet run
β The project is configured to automatically apply migrations with some seed data on its first run in the default connection string. So you do not need to manually apply them.
Frontend
cd src/client npm run build npm start
π³ Run with Docker
Open the docker-compose.yml and under environment section, fill in the required values.
Build & start containers
docker-compose up --build
Access:
Frontend:
https://localhost:9999
Backend:
https://localhost:9998
Database:
http://localhost:6666
Last updated