r/reactjs • • Feb 12 '21

Show /r/reactjs We built a responsive note-taking app using React & Typescript for studying.

622 Upvotes

88 comments sorted by

32

u/jimmyloi92 Feb 12 '21 edited Feb 13 '21

Hi all,

Link: The video doesn’t show all features. You can download and check out the app here https://midterm.app

We made a free note-taking app for everyone to write notes and study them. It’s like the combination of Evernote and Quizlet. 

  • It is offline-first. The notes are stored in a local database for offline access.

  • Support writing Math/Physics formula and chemical equations.

  • Syntax highlighting for writing code block.

  • Support image occlusion for learning Biology, etc, ... 

  • Support cloze deletion (like flashcards) for active recall.

  • Free drawing (hand-writing).

Technology: This app is built using React and Typescript with Electron. It is built from stratch (by that I mean not using any boilerplate libs). We think we learn more and develop faster by doing that. It’s also the reason why we don’t use any IDE.

If you have any questions, leave a comment below.

13

u/_Invictuz Feb 13 '21

What do you use instead of an IDE?

15

u/jimmyloi92 Feb 13 '21 edited Feb 13 '21

I use VIM.

Edit: VIM is so difficult to learn that many developers give up. You will hate it because it’s so difficult. But once you master it, you feel like you like programming even more. It’s weird.

8

u/twosummer Feb 13 '21

As someone whos hardly used VIM, is that actually beneficial for you, or a challenge you set for yourself? Is it actually something so robust that when youre good enough at it you dont need an IDE?

5

u/jimmyloi92 Feb 13 '21 edited Feb 13 '21

Productivity is one reason why people use VIM. People say you will type faster than you think with VIM (because you’re not using mouse/trackpad at all)

Even if you don’t use VIM, you don’t need an IDE. You can use nano, etc...

21

u/cyber_Void Feb 13 '21

I started coding with vim. Then realized how much time I was wasting with such an archaic system. Then I switched to vs code and my productivity jumped 10-fold

→ More replies (12)
→ More replies (1)

10

u/[deleted] Feb 13 '21

Vim has so many plugins, you can make it your IDE. I used Vim for a decade before I switched to VSCode and I'm still not sure if VSCode has made me any faster.

9

u/mctrials23 Feb 13 '21

The question is whether VIM is any faster. Feels very much like VIM is used by a lot of people who like to tell you they use VIM. VSCode is a great IDE and as long as you take a little time to learn the useful shortcuts I struggle to imagine most people using VIM are that much faster.

If you don’t know if you are faster in something, you probably have your answer.

→ More replies (7)
→ More replies (2)
→ More replies (3)

2

u/ixurge Feb 13 '21

This is my personal experience and is subjective, but multicursor capability text editors (i use sublime, but the same applies to vscode for example) just destroyed the so called "vim superior productivity" myth

1

u/jimmyloi92 Feb 13 '21

Vim productivity is not about multicursor capability. I think you misunderstand what Vim is really good at.

3

u/fintip Feb 13 '21

His point was that Multicursor ability is a killer feature that vim can't keep up with.

→ More replies (2)
→ More replies (1)

2

u/throwawayacc201711 Feb 13 '21

You can code in any text editor and just use the terminal to launch your application.

You should check out how people have tricked out vim to act as an “ide”

1

u/jimmyloi92 Feb 13 '21

Yes. But I won’t try to turn VIM into an IDE. I don’t think people should. VIM should be simple (only syntax highlighting & code suggestions). Other tools you can to use alongside with it like fzf.

→ More replies (3)

2

u/leothefair Feb 13 '21

Interesting. Not using IDE is the ultimate flex. I remember websites that had this Made with Notepad, Made with VIM badges in the 90s. I have this joke that I only code in VIM because I never actually managed to quit the application.

I can read Typescript but never programmed in it, how do you find the transition from JS? Also, no boilerplate, how would that be? Do you use the React create app and install different plugins by yourself or have you coded each plugin? Are you using Redux? And how you structure your React application folders?

1

u/jimmyloi92 Feb 13 '21

I started using React when it was born, meaning at that time there were no “create-react-app”, “react-boilerplate”, and typescript was in v1. So I have been using react and typescript for a long time now.

When react becomes more and more popular, people create many libs for it to make it easy to start. But the idea behind react wasn’t changed so you can start from scratch like I did.

This project uses event-driven architecture. It’s quite similar to Redux. The difference is that it’s more object-oriented and it doesn’t care much about immunity or data flow.

10

u/_Invictuz Feb 13 '21

Seems like you put in a lot of features into this app but th video only showcases it's responsiveness. Am I missing something?

4

u/jimmyloi92 Feb 13 '21

Yes. It has lots of features if you check out the landing page. The video only shows that you can do multitasking with the app because it’s very responsive.

7

u/Audenond Feb 13 '21

Looks great! Any chance of taking a look at the github?

4

u/jimmyloi92 Feb 13 '21

We will open-source it in the future. You can follow us on r/MidtermApp

5

u/Silverman6854 Feb 13 '21

Looks good! How long did it take you to code it?

7

u/jimmyloi92 Feb 13 '21

Around 6 months.

3

u/1TMission Feb 13 '21

Is there be any plan to make it paid or something like that? Or will it be free forever? Anyway, great product!

4

u/jimmyloi92 Feb 13 '21

Thanks. The desktop version is free. The mobile/tablet is a paid app so users can support the development.

2

u/Lobbel1992 Feb 13 '21

How did you made it responsive ?

1

u/jimmyloi92 Feb 13 '21

Use css. It’s just like how people design responsive websites. In this project, we use responsive grid from bootstrap.

2

u/ThePreacher19021 Feb 13 '21

How many years of experience you have working with React and TypeScript. I am a simple HTML, CSS, jQuery(basics), Python, and Django guy. If I want to make something like you did, how long will it take for me? Also, how much JS should I know to learn React and TypeScript?

Thanks, man.

1

u/jimmyloi92 Feb 13 '21

I have used React/TypeScript since their early releases. I cannot talk for you because everyone has different skill sets. If you want to become better at React/TypeScript, you can start by working on some simple ideas.

→ More replies (1)

2

u/ThePreacher19021 Feb 13 '21

I am using it and I love it. Will it sync with Google Drive or something?

3

u/jimmyloi92 Feb 13 '21

It has a built-in synchronizer. Google Drive or Dropbox don’t know about your database structure so it cannot sync efficiently. The built-in synchronizer knows about that and it only syncs what you have changed so it works super fast.

1

u/JoyShaheb_ Feb 13 '21

Whoa man, this is sooo dope :"D

1

u/Psychological-Bug714 Feb 13 '21

That looks great . how many of you did this project?

2

u/jimmyloi92 Feb 13 '21

3 people but i did the most part because it was my idea.

1

u/Nick337Games Feb 13 '21

Awesome work!!

1

u/adil62 Feb 13 '21

Which css framework did you use

3

u/jimmyloi92 Feb 13 '21

I use bootstrap

1

u/palpatin0 Feb 13 '21

Well done! What techniques have you used for the responsive design?

3

u/jimmyloi92 Feb 13 '21

I use bootstrap

1

u/cowjenga Feb 13 '21

Does Midterm offer a data export option (in a sensible format)?

1

u/jimmyloi92 Feb 13 '21

It doesn’t have an export option yet. But the notes are stored locally in a sqlite database file. You are able to copy and use it if you know sql.

1

u/gsdeveloper_ Feb 14 '21

damn this looks great. This is the kind of app I wish I had developed :) congrats.

1

u/[deleted] Feb 14 '21

**NOT ABOUT VIM OR VSCODE LIKE ALL THESE OTHER COMMENTS**

I would really love to know how to create a responsive sidebar like that. I just want to build a navigation helper for reddit using the reddit API.

2

u/jimmyloi92 Feb 14 '21

I don’t know if you notice. This sidebar has 2 modes. It uses “push” mode when the screen is small. It uses “reveal” mode when the screen is medium/large. Which mode are you talking about?

1

u/[deleted] Feb 14 '21

I just want to make an app with a side window that will give the user various tools to navigate reddit and a main window that will be set to reddit.com. essentially a page that will have two parts: one for the app and one for reddit. im still ironing out the details of what i want to do. maybe the sidebar will provide links that will open in the main window. any ideas would be appreciated!

1

u/jimmyloi92 Feb 14 '21

Ah. You can try the “drawer” component from material ui https://material-ui.com/components/drawers/

→ More replies (1)

1

u/PrinCe_LoGic Feb 13 '21

I just downloaded this on Arch linux, and so far it's looking pretty awesome and nifty! I do have one inquiry, is there a dark mode?

4

u/jimmyloi92 Feb 13 '21

It’s on the top of the todo list right now.

1

u/ComradeLV Feb 13 '21

Pros & cons in compare with Notion?

1

u/jimmyloi92 Feb 13 '21 edited Feb 13 '21

I think they’re too different to compare. In general, Notion is more like a database allowing you store many types of information. On the other hand, Midterm provides you tools for studying like creating cloze tests, image occlusion, etc. I believe the objective of Midterm is different from Notion’s.

2

u/JamaiKamikaze Feb 13 '21

This is great. I love spaced learning repetition. I think you should market it as a learning experience rather than memorizing, since knowing and retaining something is what students should strive for instead of memorizing something to do a brain dump afterwords.

2

u/iceteabird Feb 26 '21

Do you have the GitHub link for this?

1

u/No-Proposal2288 Mar 04 '21

Is it open source what's the github link?

0

u/[deleted] Feb 13 '21

[deleted]

6

u/jimmyloi92 Feb 13 '21 edited Feb 13 '21

Our objective is making it so that you can study anything. Other than typing from keyboard, we also want to improve free drawing so that you can also write anything with your stylus (for touchscreen and tablet)

0

u/[deleted] Feb 13 '21

[deleted]

0

u/[deleted] Feb 13 '21

[deleted]

2

u/jimmyloi92 Feb 13 '21

3 people works on this project but I took care most of it. I developed 2 of my other projects before I worked on this one.

0

u/[deleted] Feb 13 '21

[deleted]

3

u/jimmyloi92 Feb 13 '21

I think developers learn more when they are actually making something. I started making stuffs during my college years. Experience is built up over time. Even if you’re Linus Torvalds, it will take you sometime before you can make cool stuffs.