Skip to content

fellps/challenge-backend

Repository files navigation

About this project

It's a challenge to work as a software engineer at Novatics.

Getting Started

Prerequisites

This project works with Docker, more information can be found here.

Installing (Docker)

  1. The project uses environment variables, rename the .env.example file to .env and set up your environment
  2. To get the Mongo IP address in the Docker, run the command:
docker network inspect challenge_backend
  1. Run Docker
docker-compose up
  1. For testing purposes, restore the mongo database with the command:
docker-compose exec -T mongodb sh -c 'mongorestore --username=root --password=challenge --archive' < dumps/db.dump

Installing (Without Docker)

  1. The project uses environment variables, rename the .env.example file to .env
  2. Install the dependencies
npm install
  1. For testing purposes, restore the mongo database with the command:
mongorestore --username=root --password=challenge --archive < dumps/db.dump
  1. Run the project
npm run dev

Documentation

The API uses Swagger for documenting endpoints and validating application input and output data. Swagger can help you design and document your APIs at scale. More information can be found here.

Swagger provides documentation that can be accessed at:

http://localhost:3000/docs

doc

Tests

npm run test

Features

  • User login
  • Lists all BBB participants
  • Distribute user kudos

Dependencies

Security

  • The API uses JSON Web Token (JWT) as security in the communication

Contact

Feel free to contribute to the project.

Get in touch with me in on Github, Email or Linkedin

License

  • This project is licensed under the MIT License, contribute to the project!

About

Challenge to work as software engineer at Novatics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published