Comments (19)
@hkirat completed DSA Admin dashboard please have a look
Step 1 - Admin Login
Step 2 - Admin enters the problem name , description , topics , difficulty and number of input argument and Types for input and output
Step 3 - Admin adds the driver code , user code , solution for the problem and the test cases (minimum 2) to publish the problem
Step 4- Admin Publish the problem only if every details are completed
adminDashboardDSA.1.1.mp4
from daily-code.
@nimit9 right now i am working on langauge support almost done ..
from daily-code.
Hey @Rash-Hit please go ahead with it, this is something where I think I'll get to learn something, so just building it out of fun and curiosity. Trying to build it very robustly and with a good looking UI. Won't be stealing your bounty lol
from daily-code.
@hkirat Progress so far ..
Progress.So.Far.mp4
from daily-code.
Callout we already have a code
type
from daily-code.
On It
from daily-code.
@hkirat .. using piston is fine ??
code.editor.mp4
from daily-code.
piston?
from daily-code.
@hkirat , so i have used piston execute for running code - https://piston.readthedocs.io/en/latest/api-v2/#execute
in the above video . please check it . dont know its a good way or not
from daily-code.
Have started working on this, integrating it with judge0. Might take ~2 days.
from daily-code.
@hkirat , can you please confirm the schema ?? or suggestions ?? @nimit9
from daily-code.
@hkirat Progress so far ..
Progress.So.Far.mp4
If this is Monaco Editor. Add a path attribute to the editor which you can keep the language name. So that it will context switch and will give you the correct format even when you switch language.
Ref:
<Editor
heading="Editor"
height={"100%"}
defaultLanguage={globalState.currentLanguage.languageCode}
value={globalState.editorCode}
onChange={setCode}
theme={globalState.isDarkMode ? "vs-dark" : "vs-light"}
options={options}
path={globalState.currentLanguage.languageCode}
/>
from daily-code.
Might help someone, the db might can look like something like this
enum SubmissionResult {
PENDING
PASS
FAIL
RUNTIME_ERROR
COMPILATION_ERROR
}
model User {
id Int @id @default(autoincrement())
submissions Submission[]
createdProblems ProblemStatement[]
}
model ProblemStatement {
id Int @id @default(autoincrement())
title String @unique
problemText String
testCases TestCase[]
submissions Submission[]
passedSubmissions Int @default(0)
failedSubmissions Int @default(0)
creator User @relation(fields: [creatorId], references: [id])
creatorId Int
}
model TestCase {
id Int @id @default(autoincrement())
input String
expectedOutput String
problemStatement ProblemStatement @relation(fields: [problemStatementId], references: [id])
problemStatementId Int
}
model Submission {
id Int @id @default(autoincrement())
code String
language String
result SubmissionResult @default(PENDING)
runtime Int // in milliseconds
memoryUsage Int // in bytes
errorMessage String
createdAt DateTime @default(now())
problemStatement ProblemStatement @relation(fields: [problemStatementId], references: [id])
problemStatementId Int
user User @relation(fields: [userId], references: [id])
userId Int
}
This is for prisma but can be replicated :0
Hope it helps someone
from daily-code.
@hkirat Progress so far ..
Progress.So.Far.mp4
How is the current progress of this? Intrested in working on this! Feel free to add me with you.
from daily-code.
@hkirat completed DSA Admin dashboard please have a look Step 1 - Admin Login Step 2 - Admin enters the problem name , description , topics , difficulty and number of input argument and Types for input and output Step 3 - Admin adds the driver code , user code , solution for the problem and the test cases (minimum 2) to publish the problem Step 4- Admin Publish the problem only if every details are completed
adminDashboardDSA.1.1.mp4
UserDashboard.mp4
User Dashboard
More things that can be added
- Submission Page
- Solution page
- Making the running time faster
- UI can be enhanced
from daily-code.
@hkirat completed DSA Admin dashboard please have a look Step 1 - Admin Login Step 2 - Admin enters the problem name , description , topics , difficulty and number of input argument and Types for input and output Step 3 - Admin adds the driver code , user code , solution for the problem and the test cases (minimum 2) to publish the problem Step 4- Admin Publish the problem only if every details are completed
adminDashboardDSA.1.1.mp4UserDashboard.mp4
User Dashboard More things that can be added
- Submission Page
- Solution page
- Making the running time faster
- UI can be enhanced
@hkirat If you like the prototype for both Admin and userDashboard I can create the pull request else if you want me to add some other features please tell
from daily-code.
@hkirat Completed ~60-70% of this
Pending Things:
- Admin Dashboard FOrm to Create the PS, Test Cases
- adding Runtime Error info in the test run section (right bottom panel)
- Auth flow to submit the code with rate limiting
- Improving the code structure.
- UI Improvements (someone else can work on this, otherwise I'll take it up)
Below is the video with things already done, Using judge0 self hosted on local.
Please assign the issue to me, so that I can finish the pending work, and let me know if you'd need any changes in this.
Code.Submit.webm
Code-Exec.Test.Run.webm
from daily-code.
I have created a similar project can i try to integrate that to this project
link of the project that i have created ->Video https://youtu.be/hTsJoKkY07U?si=NCNFPIsDKqcKypop
Codesubmission using Judege0 and Build using Nextjs
from daily-code.
@hkirat Completed ~60-70% of this
Pending Things:
- Admin Dashboard FOrm to Create the PS, Test Cases
- adding Runtime Error info in the test run section (right bottom panel)
- Auth flow to submit the code with rate limiting
- Improving the code structure.
- UI Improvements (someone else can work on this, otherwise I'll take it up)
Below is the video with things already done, Using judge0 self hosted on local. Please assign the issue to me, so that I can finish the pending work, and let me know if you'd need any changes in this.
Code.Submit.webm
Code-Exec.Test.Run.webm
Nimit can you please update with the latest completed and pending things? I am ready to work on any of this mentioned.
from daily-code.
Related Issues (20)
- /bounty should trigger an entry to a google doc HOT 29
- bug: selecting category while creating track doesnt work
- feature: Add a way to update the category of a track HOT 1
- bug: 404 on track page HOT 12
- feature: Add PWA functionality HOT 1
- bug: DSA course videos are not opening HOT 1
- bug: setupDB shell bug
- bug:
- feature: Implemented the Leetcode like heatmap feature for user's submissions HOT 4
- bug: Move back components to apps/web HOT 2
- bug: tnc and privacy-policy pages are not there
- feature: Initilising up the CI pipeline to automatically add the contributors in the readme.md
- bug: Failed to compile during setup HOT 3
- bug: The copy button on CodeBlocks hides the code
- bug: Mark as complete not working HOT 4
- bug: App bar Alignment HOT 1
- feature: Track history
- bug: Disable Login Requirement During Development Phase Due to Authentication Issues and Local Database on the `LessonView` HOT 4
- feature: Add a duplicating option for slides, so that it direclty creates a copy of the slides in notion. HOT 5
- bug:Redirect Page UI bonked
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daily-code.