Skip to content

It performs an initial registration of a possible client and stores it in a noSQL database.

Notifications You must be signed in to change notification settings

henriqueyun/api-1-users

Repository files navigation

API-1-USERS

This API is an Users CRUD built with Node.js (Express.js + Mongoose).

Environment

First of all, make a copy of .env.example in config folder and name it just .env

Running

Make sure that you have completed the environment, then:

  1. Build docker image with:
docker build . -t henriqueyun/users-1-api:latest
# or run the shortcut script
./docker/build.sh
  1. Run it with:
docker compose -f docker/docker-compose.yaml up
# or run the shortcut script
./docker/docker-up.sh

Tests

There are some tests built with Jest, you can run it with yarn install && yarn test.

The tests use Mongo Memory Server to run independently of a MongoDB server. There is Github Action running them on main branch push/pull_request.

Docs

You could check the API Docs, built with Swagger, after running the app. through the /api-docs endpoint.

About

It performs an initial registration of a possible client and stores it in a noSQL database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages