Code Monkey home page Code Monkey logo

comic-uploader's Introduction

Comic Uploader

Comic Uploader

This seemed like a good time to sell my comic book collection, which started (gasp) 44 years ago. Most were purchased between age 9 and 19, and they stayed with me through out many, many moves. Anyway, I figured I'd try to sell them all at once to a local comic book shop. One of their first questions would likely be, "what do you have?"

So I built this upload tool.

  • The server is built with Node, Apollo 2, GraphQL, and Mongo.
  • The client is built with React, Apollo 2, Styled Components, and GraphQL.

To do your own, you'll want to spin up your own Mongo database. I did mine through mLab, which was free for small, personal projects.

Once you have a path to your own database, you'll open up server/app.js, and go to this part of the file:

mongoose.connect(process.env.DBPATH);

Simply replace process.env.DBPATH with your own URL, or include your own .env file with the URl there.

Mistakes?

  • Accidentally upload a bunch of documents, and then realize you meant to use Ints instead of Strings for a category? Here's how I fixed it: I logged in to mLab's Mongo shell, and did this command:

db.comics.find().forEach( function (x) { x.year = parseInt(x.year);db.comics.save(x);});

comic-uploader's People

Contributors

billpliske avatar sixfiveagency avatar

Watchers

James Cloos avatar  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.