Code Monkey home page Code Monkey logo

nikketeamsapi's Introduction

NikkeTeamsAPI

The NikkeTeams project consists of a Restful API still in development for sharing teams among Nikke game players, in order to efficiently help them progress more easily. The API was built following the principles of clean architecture along with best software development practices such as TDD (Test Driven Development), SOLID, and design patterns.

The chosen technologies were selected based on their efficiency and suitability for the project, including Node.js with Typescript as the main language, Fastify as the web application framework, Jest as the unit testing framework, Prisma as the ORM for accessing the Postgres database, Redis as the in-memory database for caching and performance optimization, AWS S3 as the cloud file storage service, and Docker to facilitate the deployment and scalability process of the application.

I developed all the code with a focus on ensuring the maintainability, scalability, and robustness of the application.

Installation

git clone [email protected]:yorigcs/NikkeTeamsAPI.git && cd NikkeTeamsAPI
npm install

Tests

-unit

npm run test

-integration

npm run test:integration

-coverage

npm run test:coverage

Usage

- In dev mode

npm run prisma:migrate:dev
npm run dev

Notes

Don't forget to config .env and .env.test the same as the .env.example

Dependencies

  • @aws-sdk/client-s3: AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native.
  • @prisma/client: auto-generated query builder that enables type-safe.
  • bcrypt: A library to help you hash passwords.
  • dotenv-cli: manage multiple envs.
  • module-alias: Create aliases of directories and register custom module paths in NodeJS.
  • uuid: For the creation of RFC4122 UUIDs.
  • rimraf: The UNIX command rm -rf for node.
  • jsonwebtoken: An implementation of JSON Web Tokens.
  • fastify: Faster web framework for nodejs.
  • @fastify/cookie: A plugin for Fastify that adds support for reading and setting cookies.
  • @fastify/cors: A plugin for Fastify that enables the use of CORS.
  • @fastify/multipart: Fastify plugin to parse the multipart content-type.
  • @fastify/rate-limit: An implementation of JSON Web Tokens.

Dev Dependencies

  • dotenv: Dotenv is a zero-dependency module that loads environment variables from a .env.
  • eslint-config-standard-with-typescript: An ESLint shareable config for TypeScript that is based on eslint-config-standard.
  • husky: Modern native Git hooks made easy.
  • lint-staged: Run linters against staged git files.
  • jest: Delightful JavaScript Testing.
  • jest-mock-extended: Type safe mocking extensions for Jest.
  • prisma: Prisma is a next-generation ORM.
  • supertest: HTTP assertions made easy via superagent. Maintained for Forward Email and Lad.
  • ts-jest: A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.
  • ts-node-dev: Tweaked version of node-dev that uses ts-node under the hood.
  • typescript: Language for application-scale JavaScript.
  • @types/bcrypt: TypeScript definitions for bcrypt.
  • @types/jest: TypeScript definitions for jest.
  • @types/supertest: TypeScript definitions for supertest.
  • @types/uuid: TypeScript definitions for uuid.
  • @types/module-alias: TypeScript definitions for module-alias.
  • @types/jsonwebtoken: TypeScript definitions for jsonwebtoken.

License

MIT

nikketeamsapi's People

Contributors

yorigcs avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.