Giter Site home page Giter Site logo

week-2-assignments's Introduction

FullStack Development Course Assignments

Each assignment has its respective instructions for the setup, running, testing and submitting it.

  • If you have any query then ping us on the Discord server.

week-2-assignments's People

Contributors

hkirat 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

Watchers

 avatar  avatar  avatar

week-2-assignments's Issues

Test cases of the authentication.js aren't aligned with the description of the assignment

  1. The description of all the routes has id field as well, which is generated every time a new user is created and is unique to each user. But the test cases has no mention of the id field.

  2. The expected response of /login route says

Response: 200 OK with an authentication token in JSON format if successful, or 401 Unauthorized if the credentials are invalid."

But, the tests are not checking if auth code is being returned as response or not.

I would suggest, the tests to be revisited once.

Route not found to be mentioned in fileServer.js

Need to mention this line
"- For any other route not defined in the server return 404.Should return Route not found as text if route is not found."

instead of "- For any other route not defined in the server return 404."

It fails during test case otherwise.

mistake in solution of authenticationServer.js file

task 03 in which we are making usersToReturn array in order to return it as a response instead of returning it in solution it is returning the whole users array itself.
why filter the users array then if at the end it is returning users.
link

Change of URL route of file to files in fileServer.test.js

In the line 53 of fileServer.txt.js

describe('GET /file/:filename', () => { should be describe('GET /files/:filename', () => {

'file' should be 'files' because we are provided the files directory and above this code in line 20 we are using 'files' for routing

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.