Giter Club home page Giter Club logo

fastify-api's Introduction

fastify-api's People

Contributors

red1 avatar siegfriedgrimbeek 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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fastify-api's Issues

Windows 10 install

Just read your article on medium and decided to give it a try as I'm looking to port some sails/trails legacy apps.
windows 10
node 10.15.0
npm 6.4,1

  1. npm start failed until I changed
    "start": "nodemon ./src/index.js",
  2. console reports Mongodb connected... yet
    http://localhost:3000/ displays
    {
    statusCode: 404,
    error: "Not Found",
    message: "Not Found"
    }
  3. after posting a record with postman
    http://localhost:3000/api/cars
    displays
    [
    {
    _id: "5cb4c6c5f2169e448030ae9d",
    title: "Z3",
    brand: "BMW",
    price: "7000",
    age: 10,
    services: {
    BMW Hong Kong: "01/01/2001",
    BMW NY: "5/5/2015"
    },
    __v: 0
    }
    ]
  4. Seems like its working but not sure why I get a 404
  5. Swagger does not use port 3000 so no data is retuned by get

If I get traction with this framwork I will add to your foundation with JWT, muter and other options. Also looking for a place to store mutiple databases and then have models use attach to the correct database.

window64 nodemon error

E:\zhf\work\test\test\study\node\fastify-api-clone\fastify-api>

[email protected] start E:\zhf\work\test\test\study\node\fast
tify-api
./node_modules/nodemon/bin/nodemon.js ./src/index.js

'.' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: ./node_modules/nodemon/bin/n ndex.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is like
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache_logs\201
050Z-debug.log

E:\zhf\work\test\test\study\node\fastify-api-clone\fastify-api>

SyntaxError: Unexpected token '?'

SyntaxError: Unexpected token '?'
const hostPath = listenOptions.path ? [listenOptions.path] : [listenOptions.port ?? 0, listenOptions.host ?? 'localhost']

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.