Giter Site home page Giter Site logo

jlpms's People

Contributors

enricorotundo avatar gfornari avatar

Watchers

 avatar  avatar  avatar

jlpms's Issues

Cannot run webapp

When I run the start command for the webapp (from webapp/) I get this error:

 ↵ 1  npm start                                                                                                                                                                                                                     (jlpms)
npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/erotundo/.npm/_logs/2019-03-19T21_50_28_048Z-debug.log

I tried to run npm run build.stag && NODE_ENV=staging node index.js as in package.json but I get another error:

 ~/git/jlpms.io/webapp   master ● ? ⍟1 
 ↵ 127  npm run build.stag && NODE_ENV=staging node index.js                                                                                                                                                                        (jlpms)

> [email protected] build.stag /Users/erotundo/git/jlpms.io/webapp
> webpack --config webpack.stag.js

/Users/erotundo/git/jlpms.io/webapp/node_modules/webpack-cli/bin/cli.js:235
				throw err;
				^

Error: Cannot find module './env.stag.json'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
    at Function.Module._load (internal/modules/cjs/loader.js:529:25)
    at Module.require (internal/modules/cjs/loader.js:658:17)
    at require (/Users/erotundo/git/jlpms.io/webapp/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at Object.<anonymous> (/Users/erotundo/git/jlpms.io/webapp/webpack.stag.js:4:13)
    at Module._compile (/Users/erotundo/git/jlpms.io/webapp/node_modules/v8-compile-cache/v8-compile-cache.js:178:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.js:552:3)
    at Module.require (internal/modules/cjs/loader.js:658:17)
    at require (/Users/erotundo/git/jlpms.io/webapp/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at WEBPACK_OPTIONS (/Users/erotundo/git/jlpms.io/webapp/node_modules/webpack-cli/bin/convert-argv.js:113:13)
    at requireConfig (/Users/erotundo/git/jlpms.io/webapp/node_modules/webpack-cli/bin/convert-argv.js:115:6)
    at /Users/erotundo/git/jlpms.io/webapp/node_modules/webpack-cli/bin/convert-argv.js:122:17
    at Array.forEach (<anonymous>)
    at module.exports (/Users/erotundo/git/jlpms.io/webapp/node_modules/webpack-cli/bin/convert-argv.js:120:15)
    at yargs.parse (/Users/erotundo/git/jlpms.io/webapp/node_modules/webpack-cli/bin/cli.js:232:39)
    at Object.parse (/Users/erotundo/git/jlpms.io/webapp/node_modules/yargs/yargs.js:567:18)
    at /Users/erotundo/git/jlpms.io/webapp/node_modules/webpack-cli/bin/cli.js:210:8
    at Object.<anonymous> (/Users/erotundo/git/jlpms.io/webapp/node_modules/webpack-cli/bin/cli.js:500:3)
    at Module._compile (internal/modules/cjs/loader.js:722:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.js:552:3)
    at Module.require (internal/modules/cjs/loader.js:658:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/Users/erotundo/git/jlpms.io/webapp/node_modules/webpack/bin/webpack.js:155:2)
    at Module._compile (internal/modules/cjs/loader.js:722:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build.stag: `webpack --config webpack.stag.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build.stag script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/erotundo/.npm/_logs/2019-03-19T21_54_13_971Z-debug.log

UPDATE
Fixed the second issue by coying env.dev.json to env.stag.json.
Which one do we use? In case update the README.md plz

Should we push "_id" into Algolia's index?

If we need to add "_id" to the list below so that is indexed by algolia we'd need to implement the changes below.

filter_keys = ["id", "full_name", "description"]

On the other hand, "id" is already being indexed by both mongo and algolia, should we just use that?

Changes needed:

  1. change update_one with https://docs.mongodb.com/manual/reference/command/findAndModify/
  2. pass mongo's "_id" to algolia "objectID" (https://www.algolia.com/doc/api-reference/api-methods/add-objects/)
  3. redeploy lambda

Add "How it works"

I’d add 1 section “How it works” where we explain the idea and how to contact us (can it render a local readme file?)

Change the name Jlpms

need to re-consider the name….Jlpms is not easy to remember. No worries, let’s deploy it without a domain name, I’ll [@enricorotundo] ask in the Juptyter Forum what’s the most appropriate name for it.

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.