Build an API using Node.js, Express and Serverless.js
You are provided a JSON file that will act as your database.
Your app will be built to run on the serverless-offline plugin, it will not have to actually run on AWS, only locally.
You will use Postman to test your app.
-
You will provide the exported JSON collection file from Postman so others can test your application endpoints.
-
You will store it in the
storage
directory.
Your application will:
- Use a JWT to authenticate each API call.
- Use basic authentication to get the JWT.
Your application should:
- At a minimum, demonstrate the use of GET, POST, PUT, and DELETE HTTP calls.
- Use serverless.js, the serverless-offline plugin, and Express.
- Other than that, it’s up to you to come up with the rest.
You will be judged on:
- EVERYTHING
How to turn in your work:
- Clone the main branch and create a working branch from it with your name included in the branch name.
- E.g.:
myName/2023-06-20
- Pay close attention to your commit messages.
- E.g.:
- Push your branch to this repository by the designated time in the email you received.
- You may only push your work ONE TIME
- No other pushed commits after the first one will be considered.
- Create a Pull Request.
- Pay close attention to your PR description.