r/learnjavascript • u/[deleted] • Jun 01 '20
[Show off] Second "full-stack" app - Roomie - Find a room to rent! React + TailwindCSS + Express + MongoDB + Heroku / S3
8
u/bigboss_2120 Jun 01 '20
Do you have it on github?
10
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
Jun 01 '20
Gosh, I really would like to be able to teach like I see others doing. But I can't. :P
→ More replies (2)
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
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-XBJgThat was the only one that really helped me. š¬
→ More replies (1)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
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
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
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
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!!
→ More replies (1)
4
Jun 01 '20
New York undefined... Sorry š
3
Jun 01 '20
u/ArviRao Gosh, I didn't get it. Is it a bug?š¬
2
Jun 01 '20
Yeah chill it's nothing major. Cool app by the way.
3
Jun 01 '20
Thank you man! Can you tell me what you did sonO can fix it? š
→ More replies (2)2
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
3
u/discorogo Jun 01 '20
What did you use for the maps?
3
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
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!
→ More replies (1)
3
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
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.
→ More replies (1)
2
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
Jun 01 '20
Thank you man! It is a little bit of a mess, but any feedback or questions, let me know. ;)
1
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
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
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
2
u/cadetwhocode Jun 02 '20
Which tutorial u have followed for this.?
1
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
3
1
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! ;)
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?