Coder Social home page Coder Social logo

dibs's Introduction

dibs

an app for offering things up and letting people call dibs on it

Tech Used

Development instructions

Setup

You'll need to have already installed

  1. MongoDB 3.6+
  2. Node 8+

Instantiate the database

mkdir db
mongod --port 27017 --dbpath $(pwd)/db --replSet rs0
# instantiate the replica set. only need to run this one time.
mongo --eval "rs.initiate()"

Install deps

npm install

Dev workflow

Start Mongo

npm run mongo

Keep the process open.

Start server and client

npm start

Features TODO

  • Add spinner when a user creates a dib, and when a user claims a dib
  • Location of Dib.
  • Price/bounty of Dib.
  • Auth with Google
  • Real-time comments on a Dib
  • Able to edit Dibs that you created.
  • Able to un-claim a Dib if you're the creator of the dib.
  • Steal more features from eBay.

dibs's People

Contributors

hswolff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dibs's Issues

application keeps crashing

I'm on the master branch, and the application keeps crashing when I run it:

Starting Webpack compilation...
Compiled successfully in 2637 ms.

The app is running at http://localhost:3000/

C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb\lib\utils.js:132
      throw err;
      ^
MongoError: cursor id 5749870846035818323 not found
    at C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb-core\lib\connection\pool.js:598:61
    at authenticateStragglers (C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb-core\lib\connection\pool.js:516:16)
    at Connection.messageHandler (C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb-core\lib\connection\pool.js:552:5)
    at emitMessageHandler (C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb-core\lib\connection\connection.js:309:10)
    at Socket.<anonymous> (C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb-core\lib\connection\connection.js:452:17)
    at Socket.emit (events.js:198:13)
    at addChunk (_stream_readable.js:288:12)
    at readableAddChunk (_stream_readable.js:269:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
Emitted 'error' event at:
    at Cursor.<anonymous> (C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb\lib\change_stream.js:129:10)
    at Cursor.emit (events.js:198:13)
    at C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb\lib\cursor.js:1133:14
    at err (C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb\lib\utils.js:415:14)
    at executeCallback (C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb\lib\utils.js:404:25)
    at handleCallback (C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb\lib\utils.js:128:55)
    at C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb\lib\cursor.js:722:21
    at handleCallback (C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb-core\lib\cursor.js:199:5)
    at C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb-core\lib\cursor.js:712:23
    at queryCallback (C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb-core\lib\wireprotocol\3_2_support.js:213:21)
    at C:\Users\walrus2000\proj2\dibs\server\node_modules\mongodb-core\lib\connection\pool.js:544:18
    at process._tickCallback (internal/process/next_tick.js:61:11)
[nodemon] app crashed - waiting for file changes before starting...

It works fine for a couple minutes, and then crashes in the background. I'm on Windows 10.

$ mongo --version
MongoDB shell version v4.0.13

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.