How to Code a LeetCode Clone with React and Node.js

  Рет қаралды 26,292

Suboptimal Engineer

Suboptimal Engineer

Күн бұрын

Пікірлер: 37
@memoriasIT
@memoriasIT 3 жыл бұрын
Your likes were suboptimal, so I did like++
@Dysfunctional704
@Dysfunctional704 Жыл бұрын
You're one of the few people on KZbin that know how to make tutorials! By the way - which sort of deployment would recommend for this project since it requires converting and running files locally?
@SuboptimalEng
@SuboptimalEng Жыл бұрын
Thanks! To be honest, I don't know enough about deploying projects, but my default setup is usually Next.js and Vercel.
@Coder_DhruvArora
@Coder_DhruvArora Жыл бұрын
Will it work after deployment?? And what about code mirror? Seen a lot of old tuts using code mirror but now nothing works
@daaamn6414
@daaamn6414 Жыл бұрын
I just knew basic Js and decided to learn MERN stack by building projects from start and after this tutorial I realised that I think I should rather stick towards the tutorial / course approach. Like first learn everything from scratch and then build projects by applying the knowledge :_(
@Lightpaladinsoldier
@Lightpaladinsoldier 3 жыл бұрын
Your intro made me laugh so hard bro - instant sub
@abhishekv8646
@abhishekv8646 Жыл бұрын
some one help me, client is not running---error: code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
@twenty9str498
@twenty9str498 3 жыл бұрын
what if you pass in an array as a an argument like this: [[1, 2, 3], [1, 2], 3], will it work?
@DanielRodrigues-bx6lr
@DanielRodrigues-bx6lr 2 жыл бұрын
The import 'codemirror/keymap/sublime'; and import 'codemirror/theme/dracula.css'; are giving me errors. Did you need to download and install any other dependencies for those to work?
@SuboptimalEng
@SuboptimalEng 2 жыл бұрын
You can check the package.json file on GitHub to see the dependencies.
@DanielRodrigues-bx6lr
@DanielRodrigues-bx6lr 2 жыл бұрын
@@SuboptimalEng Thanks. Evidently, I needed to do an 'npm i codemirror --save' separately from the initial @uiw/react-codemirror installation
@SuboptimalEng
@SuboptimalEng 2 жыл бұрын
@@DanielRodrigues-bx6lr Glad to see you got it cleared up!
@jeremiedsouza6703
@jeremiedsouza6703 2 жыл бұрын
@@SuboptimalEng none of these work for me, I have both @uiw/react-codemirror and codemirror installed using the commands given by `@Daniel Rodrigues` but the subdirectories in those packages aren't there. I guess the only thing different is I'm using react v18 and codemirror v6. I hope I don't have to install each theme or language separately...
@aditisingh9310
@aditisingh9310 Жыл бұрын
@@jeremiedsouza6703Same problem with my code as well
@azariahseblu1673
@azariahseblu1673 Жыл бұрын
Very helpful! What if the code you submit contains an error? Is there any way to extract the error message and send it in the response instead?
@alejobengo106
@alejobengo106 2 жыл бұрын
Is there any similar library as python shell but for js?
@SuboptimalEng
@SuboptimalEng 2 жыл бұрын
I’m not familiar with such a library but I’d assume it exists. In the worst case, you can write the text JavaScript to a JS file and run it programmatically on the console.
@DanEMO592
@DanEMO592 Жыл бұрын
I was wondering the same thing!
@myke6972
@myke6972 8 ай бұрын
i wonder how html,css,and javascript with output compilers work...
@dungviet4026
@dungviet4026 3 жыл бұрын
I used code mirror to deploy coding application like you and some thing went wrong in 2 day ago with code mirro. Is your source code have same problem?
@SuboptimalEng
@SuboptimalEng 3 жыл бұрын
Code mirror recently updated to 6.0 but I was using the older version. Not sure if that’s what you mean
@dungviet4026
@dungviet4026 3 жыл бұрын
​@@SuboptimalEng I use uiw/react-codemirror like use the version after 4.0.0 of uiw/react-codemirror now is error can you check it with your code
@mrmartinwatson1
@mrmartinwatson1 2 жыл бұрын
@@dungviet4026 Aye! i was trying to use react-codemirror as well and i am getting a error as well. The thing is, it runs on my brother computer but not on mines. Did you ever figure this out?
@mrmartinwatson1
@mrmartinwatson1 Жыл бұрын
I couldn't figure this out. Instead I went with default code mirror 6. Works well but requires you to make it into your own solution
@kushagra4401
@kushagra4401 Жыл бұрын
thanks buddy
@nlhm
@nlhm 2 жыл бұрын
Great tutorial ! Could you tell me the global steps on how we can get rid of the "__main__" and sys import i.e. it works if we write : ``` def add(a, b): return a + b ``` please ?
@SuboptimalEng
@SuboptimalEng 2 жыл бұрын
Thanks! The simplest solution would be to just add main + import to the string once the user submits the code (before you pass it to the backend). Just gotta make sure the spacing is correct.
@nlhm
@nlhm 2 жыл бұрын
@@SuboptimalEng Thanks for the answer !
@kaminisray7809
@kaminisray7809 3 жыл бұрын
Which theme is this?Looks pretty nice :)
@SuboptimalEng
@SuboptimalEng 3 жыл бұрын
It's the github default dark theme
@swapnil511994
@swapnil511994 Жыл бұрын
I discovered gold by accident
@ob34915
@ob34915 9 ай бұрын
I know this is for educational purpose but you SHOULD NOT run untrusted client code on your server
@cristicretu7479
@cristicretu7479 3 жыл бұрын
oh hell yeah
@shadowop-bgmi2202
@shadowop-bgmi2202 3 жыл бұрын
Vs code theme link bro i am from india
@SuboptimalEng
@SuboptimalEng 3 жыл бұрын
That’s GitHub dark color theme
How to Code a Vim Tutor with React and CodeMirror
19:47
Suboptimal Engineer
Рет қаралды 5 М.
How To Build A Google Docs Clone With React, Socket.io, and MongoDB
46:52
Web Dev Simplified
Рет қаралды 199 М.
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 39 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 124 МЛН
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 1,4 МЛН
Node.js Tutorial for Beginners: Learn Node in 1 Hour
1:18:16
Programming with Mosh
Рет қаралды 6 МЛН
Build a Browser Code Editor in React (Monaco React Editor)
32:55
How to build an Online Code Compiler using MERN Stack? | Part 1
49:14
Aayush Joglekar
Рет қаралды 47 М.
React VS Svelte...10 Examples
8:35
Beyond Fireship
Рет қаралды 581 М.
Introduction to Phong Lighting
9:44
Suboptimal Engineer
Рет қаралды 16 М.
Socket.io + ReactJS Tutorial | Learn Socket.io For Beginners
32:35
How To Build CodePen With React
30:26
Web Dev Simplified
Рет қаралды 158 М.