Git Product home page Git Product logo

placeyourself's Introduction

Currently broken

Place Yourself ๐ŸŒ… ๐Ÿž ๐Ÿ™

Create your own placeholder image collections

Install and run

npm install && node server

View at

http://localhost:3000

Choose and submit images for the collection

Access placeholders by height and width

e.g. http://localhost:3000/collections/Dogs/240/500

placeyourself's People

Contributors

nimaboscarino avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

placeyourself's Issues

json not found error

Error: ENOENT: no such file or directory, open 'public/defs/ship.json'
    at Object.openSync (fs.js:438:3)
    at Object.readFileSync (fs.js:343:35)
    at selectImage (/app/server.js:16:28)
    at /app/server.js:87:20
    at Layer.handle [as handle_request] (/rbd/pnpm-volume/a72f2b1e-1afc-4688-8e42-8faec7682622/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/layer.js:95:5)
    at next (/rbd/pnpm-volume/a72f2b1e-1afc-4688-8e42-8faec7682622/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/rbd/pnpm-volume/a72f2b1e-1afc-4688-8e42-8faec7682622/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/rbd/pnpm-volume/a72f2b1e-1afc-4688-8e42-8faec7682622/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/layer.js:95:5)
    at /rbd/pnpm-volume/a72f2b1e-1afc-4688-8e42-8faec7682622/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/index.js:281:22
    at param (/rbd/pnpm-volume/a72f2b1e-1afc-4688-8e42-8faec7682622/node_modules/.registry.npmjs.org/express/4.17.1/node_modules/express/lib/router/index.js:354:14)

When creating a collection:

{ width: 912, height: 545, type: 'png' }
{ width: 687, height: 489, type: 'png' }
{ width: 669, height: 497, type: 'png' }
{ width: 671, height: 526, type: 'png' }
fs.js:114
    throw err;
    ^

Error: ENOENT: no such file or directory, open 'public/defs/ship.json'
    at Object.openSync (fs.js:438:3)
    at Object.writeFileSync (fs.js:1189:35)
    at /app/server.js:149:14
    at xfs.stat (/rbd/pnpm-volume/a72f2b1e-1afc-4688-8e42-8faec7682622/node_modules/.registry.npmjs.org/fs-extra/2.1.2/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16)
    at callback (/rbd/pnpm-volume/a72f2b1e-1afc-4688-8e42-8faec7682622/node_modules/.registry.npmjs.org/fs-extra/2.1.2/node_modules/fs-extra/node_modules/graceful-fs/polyfills.js:295:20)
    at FSReqWrap.oncomplete (fs.js:154:5)

I tried running this and ran into this issue when trying to hit any expected endpoint to the api. uploading my images went fine before this.

Could you provide any info on what the json its expecting is? I could probably fix it if I knew what the service was looking for. Thanks for the help and for making this, very useful!

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.