Code Monkey home page Code Monkey logo

be_music_kan_zhang's People

Contributors

kay-zee avatar

Watchers

 avatar

be_music_kan_zhang's Issues

cleanup unused files

  • json files at root folder (and they are not loaded at tests?)
  • node_modules should be in the repo either, rather, npm installed
  • views, do you use them?
  • controllers associated with the above
  • mongodb binary
  • client assets ..

These are the most striking so far, but also please take some time to think this further.

make models

Your routes are a bit overloaded with huge functions.

Separate some of the logic to models that behave in a harmonious way to both persist the data given to them and taken form them in a format that makes the manipulation way cleaner

all answers in json

the answers should be served in JSON format, no HTML, and also tested accordingly

DBs better off the repo

Please note that save in exceptional situations, the DB don't go inside the repo.
Instead, having a script to load the data is much preferred. If you go with that, also find a way to reset the data.

A hardcoded url such as mongodb://localhost:27017/BE_music_db is fine for development tho =)

tests repeatable

Please make sure that there is a certain setup for the tests that allow then to run repeatably without need of manual arrangements such as dropping tables

improvement to tests

  • load data sets form json files
  • use the library request to make your requests
  • when above is done, look into lib async to make the code more clean

We found your solution with tracker>=counter smart anyway =)

update instructions to start

when I run node app.js it doesn't work, can fix why?

~/eclipse_workspace/BE_music_Kan_Zhang $ node app.js 

module.js:333
    throw err;
          ^
Error: Cannot find module 'debug'
    at Function.Module._resolveFilename (module.js:331:15)
    at Function.Module._load (module.js:273:25)
    at Module.require (module.js:357:17)
    at require (module.js:373:17)
    at Object.<anonymous> (/Users/flockonus/eclipse_workspace/BE_music_Kan_Zhang/node_modules/express/node_modules/connect/lib/proto.js:14:13)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:349:32)
    at Function.Module._load (module.js:305:12)
    at Module.require (module.js:357:17)

Also got the same error trying to run via the IDE you pointed.

When working in a collaborative project, you have to mind people with different configurations and clear instructions

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.