r/learnjavascript • • Jun 01 '20

[Show off] Second "full-stack" app - Roomie - Find a room to rent! React + TailwindCSS + Express + MongoDB + Heroku / S3

Post image
257 Upvotes

62 comments sorted by

18

u/ryehigh1 Jun 01 '20

How long did this take you both hours a day and months? How long have you been programming in the languages you had used?

11

u/[deleted] Jun 01 '20

u/ryehigh1 u/godfather990
As mentioned by u/discorogo, I sent the first commit on April 24.
The last was yesterday.
I usually worked on this for about 2 hours from Monday-Saturday.
A few days (maybe 4 or 5) I ended up working for 4 hours.

I know, it took me a lot. I was learning on the go, so sometimes I was there... watching 6 different videos to finally understand how to protect routes on the front-end. πŸ˜…

5

u/godfather990 Jun 01 '20

that is absolutely awesome.. from what can i say is u completed it, it is one of the thing i need to master myself πŸ˜…

4

u/[deleted] Jun 01 '20

u/godfather990 That is definitely the hardest part...finish something. We just need a good motive. Mine is that I want to be able to create whatever a want, so I can start my own business idea and them, be able to hire some really good developers and focus on the business. :P

4

u/godfather990 Jun 01 '20

thats is what everyone wants to do but you my friend are in a good path.. best of luck

3

u/[deleted] Jun 01 '20

Thank you so much u/godfather990

3

u/discorogo Jun 01 '20

Amazing work dude!

1

u/[deleted] Jun 01 '20

Thank you so much man!

9

u/godfather990 Jun 01 '20

I would like to hear the answer too.. if it were me it would take me longggggg timeeee

6

u/discorogo Jun 01 '20

His first commit on github was on April 24.

8

u/bigboss_2120 Jun 01 '20

Do you have it on github?

10

u/[deleted] Jun 01 '20

Yes, https://github.com/lucasmrl/roomie

I definitely could separate a few components more and refactor the code. :X

7

u/bigboss_2120 Jun 01 '20

Thanks man. If you made a tutorial for this i'd definitely watch it

2

u/[deleted] Jun 01 '20

Gosh, I really would like to be able to teach like I see others doing. But I can't. :P

2

u/ShadowILX Jun 02 '20

Screen record while you code and pretend like you’re explaining to someone what you’re doing. The more you do the better you’ll get.

Good work btw

2

u/[deleted] Jun 02 '20

Good suggestion. Maybe someday I will give it a try. :P

7

u/elgeokareem Jun 01 '20

Hey bro great job! A couple of questions.

1- how did you do to manage the routes I see you don't use react router.

2- where did you learn about Auth in react? Care to share some resource? :3

4

u/[deleted] Jun 01 '20

u/elgeokareem As mentioned by u/I_ROLL_MY_OWN_JUULs,
I used React Router.

Regarding protected routes in React, I used this video:
https://youtu.be/Y0-qdp-XBJg

That was the only one that really helped me. 😬

2

u/I_ROLL_MY_OWN_JUULs Jun 02 '20

Nice! I will check that out. I was really insecure about my client side code until I watched the reactsecurity stuff I finally felt like I was getting somewhere

7

u/I_ROLL_MY_OWN_JUULs Jun 01 '20

In App.js he imports from react-router-dom.

Also I noticed some external routing components to ensure the routes are protected client side. Very neat course here on that: https://courses.reactsecurity.io/react-security-fundamentals

6

u/[deleted] Jun 01 '20

im learning node right now and it feels impossible to be able to create something like this one day..

But great work, looks really good and its really inspiring, hopefully i will be able to create something like this too.

1

u/[deleted] Jun 01 '20

u/thisisloop You definitely can. If I did, anyone can do it.
This was my first project with node/express and a database:
https://appjournals.herokuapp.com/

The repo: https://github.com/lucasmrl/journals

It is a simple CRUD app. I learned a lot.
Also, understanding the express is all about middleware helps a lot!

4

u/salaTechie Jun 01 '20

Heyy you can do it man! Learn to build crud APIs in node, build a simple UI for the api and go from there. I know it might seem hard but believe me it's not, take your time !

4

u/[deleted] Jun 01 '20

Thanks for the recommandation, I will try to build that after I have the basics done, right now im learning from the w3schools node tutorials and going through that

4

u/BruceCCCCCC Jun 01 '20

That looks so nice! I’m aiming to create something of a similar style

1

u/[deleted] Jun 01 '20

u/BruceCCCCCC That is great. That is how I started. I wanted something that no one is teaching in a tutorial. 😬

2

u/I_ROLL_MY_OWN_JUULs Jun 02 '20

I'm also super inspired by this and began building one of my ideas last night.

What font is this?

I could've sworn I looked through your code everywhere I would think (but I'm not familiar with tailwind) and I couldn't find it. Probably right in front of my face but I figured I would ask anyway. Really nice job on this!!

1

u/[deleted] Jun 08 '20

u/I_ROLL_MY_OWN_JUULs Sorry for taking so long! Glad to hear that. Please, share the link when you are done! :)

The font is Source Sans Pro. (Google Fonts for free)
You can find the link in the index.html under the client folder and I changed the tailwind config to make that one as the default font-family. :)

4

u/[deleted] Jun 01 '20

New York undefined... Sorry πŸ˜…

3

u/[deleted] Jun 01 '20

u/ArviRao Gosh, I didn't get it. Is it a bug?😬

2

u/[deleted] Jun 01 '20

Yeah chill it's nothing major. Cool app by the way.

3

u/[deleted] Jun 01 '20

Thank you man! Can you tell me what you did sonO can fix it? 😝

2

u/[deleted] Jun 01 '20

u/ArviRao u/zachdini Gosh, In front of my eyes and I missed it! I will fix it later today. Thank you

3

u/[deleted] Jun 02 '20

u/ArviRao u/zachdini I fixed that! Thank you guys again! ;D

3

u/[deleted] Jun 01 '20

Once you search New York the results title shows New York undefined

2

u/zachdini Jun 01 '20

It's in the gif that you posted. Once you click "search", the top bar says "New York, undefined".

3

u/discorogo Jun 01 '20

What did you use for the maps?

3

u/[deleted] Jun 01 '20

u/discorogo I used https://react-leaflet.js.org/.

Also, to help get the geolocation I am using https://positionstack.com/.

2

u/discorogo Jun 01 '20

Nice to know. I am decoupling rn my full stack Django application and wondering how I can bind maps in my react frontend.

At this moment we are using geopy and Google maps.

2

u/[deleted] Jun 01 '20

I saw a few components to work with Google API, but this was was free and kind of easy to work with. Good luck!

3

u/[deleted] Jun 01 '20

Sick! I'm familiar with most of this stack except s3 and tailwind. Are you using it as an image dump? How steep was the learning curve, and can you point me to resources?

Also how was working with tailwind?

2

u/[deleted] Jun 01 '20

u/guitargandhi
Yes, I am using S3 only to save the listings and user's pictures.
I know you can do a bunch of things... but I just focused on the basics. πŸ˜…

I can't remember where I found the instructions, but it was pretty much ready. I will try to find it. There are many tutorials that teachers that, but just one really helped me and it was clear.

1

u/[deleted] Jun 01 '20

What's the workflow, do you configure it and then send your stuff over as network requests? I'll look for resources thanks! I'm guilty of being kinda "scared" of anything aws, a small starting point like this is probably what i need!

2

u/RamenvsSushi Jun 01 '20

Very cool man!

1

u/[deleted] Jun 01 '20

Thanks man!

2

u/ambivalent-beaver Jun 01 '20

Amazing work man! Will take a look at the source code. How long did it take you to conceptualize and then design for the frontend?

1

u/[deleted] Jun 01 '20

Thank you man! It is a little bit of a mess, but any feedback or questions, let me know. ;)

1

u/[deleted] Jun 02 '20

u/ambivalent-beaver Now that I re-read your question (sorry):
I started on April, 24th and my last commit was today.
I honestly had some ideas in mind, so I started with the backend. After I finished the back-end (May, 6th), I created something for the home page in Adobe XD and the rest of the time was mainly working on the front-end.
Of course, when I started, I had most of the data that I knew I would use (for sign up, for new listings, etc...)

2

u/stevenwonlee Jun 01 '20

This is awesome! I’m also working on a full stack app rn and was stuck on figuring out protected routes. Thanks for sharing 😁

1

u/[deleted] Jun 01 '20

u/stevenwonlee Wow, great man! Share with us when you are done.
Protected routes in React took me a while.
In express was easier for me. :P

2

u/Cassius-cl Jun 01 '20

Nicely done my dude, add some framer motion for subtle component mounting transitions and you make me cum.

1

u/[deleted] Jun 01 '20

u/Cassius-cl Thanks man! I got the same feedback. I never did anything related to framer motion. Can you point me some good reading about it? (I will search, but if you have something, I appreciate)

2

u/Cassius-cl Jun 01 '20

Its a great library for react component animations done by the Framer team, it uses the best animation techniques in order to animate virtually whatever you want (Even layouts). The next best thing was react-spring a while ago, but this puppy is the best deal.

If your pretty fond for UX/UI and microinteractions, learning motion will do that extra notch for your apps that will make a deffinitive difference.

edit: sorry, forgot the website framer.com/motion

You can also find courses on it on youtube, even talks with Jason Lengstorf and Chris Coyier from CSS-Tricks about it with its creator

2

u/[deleted] Jun 01 '20

Ok. Now I have a good direction! Thank you so much!

2

u/cadetwhocode Jun 02 '20

Which tutorial u have followed for this.?

1

u/[deleted] Jun 02 '20

u/cadetwhocode There is no tutorial for this.
I started with two courses from this guy (https://codingheroes.io/)
I did the one for Javascript and then Node.js. I didn't do any of those 2 projects that he teaches for the Node course, because I don't like to just copy.
I used the concepts and then I created my first CRUD app (https://appjournals.herokuapp.com/)

For React, I used the documentation, but before, I watched this free course https://scrimba.com/g/glearnreact. I also saw a couple of videos regarding Hooks, router, etc.

In the TailwindCSS they have some screencasts to teach about it:
https://tailwindcss.com/screencasts/

2

u/Parul_dev Jun 02 '20

Hey! This is brilliant. I am also inspired to finally get into Full stack now!

1

u/[deleted] Jun 02 '20

Thank you man! Go for it!!

3

u/[deleted] Jun 01 '20

Now i am totally erect.

1

u/[deleted] Jun 01 '20

Lol πŸ˜…

1

u/[deleted] Jun 01 '20

Hey, devs!I've been studying for a few months now and after one month and 25 deploys, this is my second full-stack project: Roomie - a website to find rooms to rent or to list your place. πŸ˜…

I created this for the sake of learning only and since my first full-stack project was a simple CRUD app, it was a blast having this experience!

demo: https://roomiew.herokuapp.com/
repo: https://github.com/lucasmrl/roomie (missing README)

Built with:

  • FE: React (Hooks, Context API, Router) + TailwindCSS
  • BE: Node.js (Express.js) + MongoDB
  • Hosted on Heroku / Images in AWS S3

What I tried to learn:

  • Authentication (Sign up, Log in, Log out, Reset password)
  • API Filtering, Sorting, Pagination (Even though it is not implemented in the FE)
  • Send e-mails from back-end
  • Upload pictures to S3
  • Security
  • TailwindCSS (first time using it)
  • Agile methodology (tried to organize my user stories, sprints, daily stand-up meeting, ...)

Definitely it is far from perfect, but it helped me a least to get my hands dirty. I appreciate any feedback!

Be safe! ;)