Coder Social home page Coder Social logo

connor11528 / task-app-backend Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 8.0 66 KB

๐Ÿ—’๏ธ Hapi v17 Node.js server for the task app

Home Page: https://medium.com/employbl/build-a-task-app-with-hapi-mongodb-and-vue-js-dc05c1bb8778

JavaScript 100.00%
hapi hapijs hapi-v17 nodejs mongoose mongoosejs javascript todo todoapp todolist

task-app-backend's Introduction

Task app with Hapi and MongoDB

This repo is for getting started building a tech stack with core tools like Node.js, Hapi v17 and MongoDB with Mongoose ORM

Full tutorial that accompanies this code is available on Medium.

Seed some tasks

$ node src/utils/seed.js

Start server

$ npm run start

Roadmap

Tutorial notes

If you run into dyld: lazy symbol binding failed: Symbol not found error, then running npm rebuild bcrypt --build-from-source will fix it.

  • We're using Mailgun because Mandrill is too expensive for what we need right now. No sense paying more than we have to for the same thing!

  • You'll need to add a domain to your mailgun account.

  • If so inclined you can generate a super secure secret key using: node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"

task-app-backend's People

Contributors

connor11528 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

task-app-backend's Issues

Failed to run successfully

Hi Connor,
Thank you so much for this demo. It looks very useful for a newbie like me, but I failed to run it on my machine and need some advice to fix it. Here's what I did.

  1. git clone
  2. npm install
  3. source .env.example (no idea if this is necessary)
  4. node src/utils/seed.js

Stuck on step 3 which showed the error messages as follows:

****/task-app-backend/node_modules/mailgun-js/lib/mailgun.js:16
      throw new Error('apiKey value must be defined!')
      ^

Error: apiKey value must be defined!
    at new Mailgun (****/website/task-app-backend/node_modules/mailgun-js/lib/mailgun.js:16:13)
    at create (****/website/task-app-backend/node_modules/mailgun-js/lib/mailgun.js:239:10)
    at Object.<anonymous> (****/website/task-app-backend/src/utils/emails.js:5:38)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (****/website/task-app-backend/src/utils/index.js:4:22)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (****/website/task-app-backend/src/models/user.js:2:26)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)

Thanks!

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.