/express-tutorial

express api to register patients

Primary LanguageJavaScript

Express

Express Tutorial

A Rest API that register patients and detect Corona symphtoms

About the project   |    Goals   |    Installation   |    Routes   |    Licence

🚀 About the project

An API Rest made with Express to register patients and detect Corona symptoms. The file system API provided by Node was used to persist patients data, since the goal of the tutorial was to focus on Express Fundamentals and not to set up a database.

☑️ Goals

Understand how to create a server with Express, setting the routes, separating the entity operations with controllers and creating middlewares to do configurations or logics between two points.

🏁 Installation

First of all, make sure that you have Node.js installed on your machine. Choose a package manager (NPM or Yarn)


Now, to install the dependencies

yarn install

To start the application

  yarn dev 
  

📨 Routes

Status Codes

This API returns the following status codes:

Status Code Description
200 OK
401 UNAUTHORIZED
404 NOT FOUND
500 INTERNAL SERVER ERROR

📝 Licence

MIT Licence. See the file LICENSE for more details.


Made with ♥ by Laura 👋 See my linkedin!