GitHub Source Fileshttps://github.com/JS-Beginners/blog-to-social-posts
- NodeJS (Server-Side)
- ExpressJS (Node Framework)
- NPM Modules
New Things Learned or RefreshedI had a general idea how to build this project before I began. Meaning, I knew I wanted to scrape a blog post that contained sentences, send that information to my server, and then export those sentences into a .csv file. The first part, getting the requested url was relatively easy. I used the request npm module to retrieve the url and then used bodyParser to send the url to my
Time to CodeIt's difficult to determine how long it took this project to code. I worked on it over several days for about two weeks. y wife sent me the initial email asking me to build it on May 31st and I had it built out and fully functional by June 15th. I spent a lot of time researching and learning different pieces of this puzzle.
Lines of CodeThis project is compose of several different EJS files but the actual
app.jscontains only 124 lines of code, including white space.
Biggest Take Away(s)
- Full applications are made with many small pieces of different mini-applications and libraries.
- You'll never know everything. Just be good at finding what you need to know when you need it.
What to Accomplish
- Download the source code from the github repository above.
- Delete the contents of the
- Deploy your application to Heroku and then add a link to your finished project below!
What You Should See
- Find a blog post.
- Copy the blog post's link and add it to the link section in the Social Media Blog Post Generator.
- When you click ‘generate', you should see a page with all the sentences that will go into your .csv file.
- Download the .csv file and you should see all your setences.
Get Angela's Web Development Bootcamp Course