An open API service indexing awesome lists of open source software.

https://github.com/librity/ignite_accounts

Rocket Seat - Ignite - NodeJS - Challenge 4 - A user accounts API made with NodeJS and Express.
https://github.com/librity/ignite_accounts

authentication challenge express nodejs rocketseat-ignite

Last synced: 3 months ago
JSON representation

Rocket Seat - Ignite - NodeJS - Challenge 4 - A user accounts API made with NodeJS and Express.

Awesome Lists containing this project

README

          

# Rocket Seat Ignite - User Account Backend

## Table of Contents

- [About](#about)
- [Getting Started](#getting_started)
- [Endpoints](#endpoints)
- [Resources](#resources)

## About

A user account backend made with NodeJS, Express and Jest.

## Getting Started

### Prerequisites

- `node >= 12.0.0`
- `yarn >= 1.22.0`

### Installing

1. Clone this repo locally and install the required packages:

```bash
$ git clone https://github.com/librity/ignite_accounts.git
$ cd ignite_accounts
$ yarn install
```

2. Start a dev server:

```bash
$ yarn dev
```

3. Import the Insomnia workspace from `./insomnia/workspace.json`
and run some requests.

### Testing

Run tests with jest:

```bash
$ yarn test
```

## Endpoints

`Documentation web UI`

- http://localhost:3333/api-docs

`Users`

- `GET` http://localhost:3333/users
- `GET` http://localhost:3333/users/:id
- `POST` http://localhost:3333/users
- `PATCH` http://localhost:3333/users/:id/admin

## Resources

- https://github.com/scottie1984/swagger-ui-express
- https://swagger.io/specification/
- https://stackoverflow.com/questions/154059/how-can-i-check-for-an-empty-undefined-null-string-in-javascript