Coder Social home page Coder Social logo

lab4-regina-yan's Introduction

lab4-regina-yan

Available at freefoodatnow.surge.sh

What I did

I created a CRUD application with React-Redux that allows the user to create free food events, read/view current events, update post information, and delete completed events with the CS52 backend.

What worked

It took me awhile to really figure out how the containers connected to each other and how actions worked, but Short Assignment 5/6 were extremely helpful to my understanding. In the end, I adapted the "blog post" idea and created the Free Food @ Now Site. The "tags" in the API are reframed as the location/time of the event.

Main Screen

Screen Shot 2019-04-30 at 1 35 19 AM

Individual Post

Screen Shot 2019-04-30 at 1 38 04 AM

Updating Post

Screen Shot 2019-04-30 at 1 38 31 AM

Creating New Post

Screen Shot 2019-04-30 at 1 48 10 AM

Extra Credit

For extra credit, I turned the blog into a free food site. I also added form validation. For example, the title and tags (location/time) are required, so if the user doesn't fill them out (I used onBlur for this), then the box will turn red after they click away from that field. The submit button will not show up unless all the required fields are filled.

Screen Shot 2019-04-30 at 1 48 00 AM

I also used a function to check to make sure the image URL is actually a valid URL. While that field is not required, if one does decide to fill it out, it needs to be an actual site or else we won't have a cover image!

Screen Shot 2019-04-30 at 1 48 36 AM

Acknowledgements

Special thanks to Sheppard Somers '19 for helping debug and providing emotional support when the bugs were too scary

lab4-regina-yan's People

Contributors

regina-yan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.