ByteBiteChef / ByteBiteChef.github.io

0 stars 0 forks source link

Build Your First REST API with Node.js and Express 🚀 #10

Closed nunyvega closed 7 months ago

nunyvega commented 10 months ago

Objective

Max, it's time to put your newly MySQL skills into practice and venture into backend development! You will build a REST API using Node.js and Express, and later integrate it with a frontend interface. This project will be broken down into clear steps to help you grasp each concept thoroughly.

Task Breakdown

Step 1: Complete the Node.js and Express Tutorial 📚

Step 2: Document and Comment Your Code 📝

Step 3: Build a Frontend Interface 🔗
Step 4: Transition to a Real Database with SQLite 🗃️

Notes 📝


Max, this project is a big step into full-stack development, and I'm confident you'll handle it brilliantly. Looking forward to seeing your REST API in action and how you integrate it with a frontend interface! Happy coding! 🌟💻

ByteBiteChef commented 10 months ago

Hello! Thanks for the new project, I'm going to start right away. Cheers!

nunyvega commented 10 months ago

how is it going @ByteBiteChef ?

ByteBiteChef commented 10 months ago

Hi, I finished step 2 and now, I'm working on the front end of the project using ChatGPT to clear some doubts. I'll let you know how it goes.

Thanks!

ByteBiteChef commented 10 months ago

Hi, I completed step 3. I had some challenges creating the up-to-date function and went through debugging to make it work. I added a simple style with Bootstrap and I would like to improve it once that all my application is done.

Thanks!

ByteBiteChef commented 10 months ago

Hello, I finished the last task on the list. I'm very happy with the results.

Thaks!

nunyvega commented 10 months ago

@ByteBiteChef whenever you have some minutes, can you please share shortly:

  1. the tricky parts of this project for you, and how you got to complete those parts 2 add a link/screenshots to the final result
  2. what would be your next steps if you had more time to complete this
  3. what would you do differently if you start again
ByteBiteChef commented 10 months ago

The most difficult part of the project was to create all the controllers for the CRUD operations, everything was new to me. After that, I had a few challenges too, like creating an "async function" which was a concept that I knew already, but was still a bit complicated. Here is how my app looks.

Screenshot 2023-12-22 at 12 00 44

And, here is a part of the code:

Screenshot 2023-12-22 at 12 02 30

The tutorial HOW TO BUILD A REST API helped me a lot to achieve my goals in this project.

To reinforce my understanding of fetch functions I use those videos: https://www.youtube.com/watch?v=ccX3ApO4qz8&t=1675s https://www.youtube.com/watch?v=KiRKUTDYlG8&t=928s&ab_channel=DearProgrammer

Using GPT was very helpful too.

In case I have more time to dedicate to this project I would like to work on the styling of the application but also, I would try to do a cleaner code. Besides that, I am happy with the results as I said.

If I had to start again I would spend more time on the basic concept of the project, like trying to understand as much as possible about what the CRUD is and how it works. Having a better overview of this, the project would it be much fluid.