Giter Club home page Giter Club logo

lepanivore-website's Introduction

README

Build Status Mutation testing coverage (only on back unit tests)
Build Status Mutation Score

This is an online ordering website for Boulangerie Le Panivore.

Directory structure

front

The frontend application built with Nuxt.js.

API service

Methods to interact with REST Api are defined in front/services/api.service.ts. This service is injected in Nuxt Context to be able to access it from components in front/plugins/api-service.plugin.ts.

back

The backend application built with NestJS. The application uses a Clean Architecture pattern (see below).

Clean Architecture

The back application is designed using a Clean Architecture pattern (also known as Hexagonal Architecture). Therefore, SOLID principles are used in code, especially the Dependency Inversion Principle (do not mix up with the classic dependency injection in NestJS for example).

Concretely, there are 3 main packages: domain, use_cases and infrastructure. These packages have to respect these rules:

  • domain contains the business code and its logic, and has no outward dependency: nor on frameworks (NestJS for example), nor on use_cases or infrastructure packages.
  • use_cases is like a conductor. It will depend only on domain package to execute business logic. use_cases should not have any dependencies on infrastructure.
  • infrastructure contains all the technical details, configuration, implementations (database, web services, etc.), and must not contain any business logic. infrastructure has dependencies on domain, use_cases and frameworks.

How-to

The npm commands are the same, whether you are on back or front application.

Requirements

  • Node LTS 16.x

Install

npm install

Test

npm test

Run

npm run start:dev

Database migrations

When running back for the first time, or after database deletion, you have to run migrations to create a local database:

npm run typeorm:migration:run

Environment variables

See INSTALL.md.

lepanivore-website's People

Contributors

damienbeaufils avatar dependabot[bot] avatar devenini avatar ge0rg11 avatar renovate-bot avatar tmorat avatar

Watchers

 avatar  avatar

Forkers

tmorat devenini

lepanivore-website's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update all-packages (major) (@nestjs/cli, @nestjs/common, @nestjs/core, @nestjs/jwt, @nestjs/passport, @nestjs/platform-express, @nestjs/schematics, @nestjs/testing, @nestjs/typeorm, @nuxt/typescript-build, @sentry/node, @types/jest, @types/node, @vue/test-utils, babel-jest, helmet, jest, nest-raven, node, npm, nuxt, rimraf, ts-jest, tsc-watch, typescript)

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
back/package.json
  • @nestjs-modules/mailer 1.8.1
  • @nestjs/common 8.4.4
  • @nestjs/core 8.4.4
  • @nestjs/jwt 8.0.0
  • @nestjs/passport 8.2.1
  • @nestjs/platform-express 8.4.4
  • @nestjs/typeorm 8.0.3
  • @sentry/node 6.19.7
  • bcrypt 5.0.1
  • helmet 5.0.2
  • joi 17.6.0
  • json2csv 5.0.7
  • lodash 4.17.21
  • nest-raven 8.1.0
  • nodemailer 6.7.4
  • passport 0.5.2
  • passport-jwt 4.0.0
  • passport-local 1.0.0
  • pg 8.7.3
  • rimraf 3.0.2
  • rxjs 7.5.5
  • sqlite3 5.0.6
  • typeorm 0.2.45
  • @nestjs/cli 8.2.5
  • @nestjs/schematics 8.0.10
  • @nestjs/testing 8.4.4
  • @stryker-mutator/core 6.0.0
  • @stryker-mutator/jest-runner 6.0.0
  • @types/bcrypt 5.0.0
  • @types/express 4.17.13
  • @types/jest 27.5.0
  • @types/json2csv 5.0.3
  • @types/lodash 4.14.182
  • @types/node 17.0.31
  • @types/passport-jwt 3.0.6
  • @types/passport-local 1.0.34
  • @types/supertest 2.0.12
  • jest 28.0.3
  • prettier 2.6.2
  • supertest 6.2.3
  • ts-jest 28.0.0
  • ts-loader 9.3.0
  • ts-node 10.7.0
  • tsc-watch 5.0.3
  • tsconfig-paths 4.0.0
  • tslint 6.1.3
  • tslint-config-prettier 1.18.0
  • tslint-plugin-prettier 2.3.0
  • typescript 4.6.4
  • node ~16.15.0
  • npm ~8.8
front/package.json
  • @nuxtjs/auth 4.9.1
  • @nuxtjs/axios 5.13.6
  • @nuxtjs/proxy 2.1.0
  • @nuxtjs/toast 3.3.1
  • nuxt 2.15.8
  • @nuxt/types 2.15.8
  • @nuxt/typescript-build 2.1.0
  • @nuxtjs/google-analytics 2.4.0
  • @nuxtjs/vuetify 1.12.3
  • @types/jest 26.0.24
  • @vue/test-utils 1.3.0
  • babel-jest 26.6.3
  • jest 26.6.3
  • prettier 2.6.2
  • ts-jest 26.5.6
  • tslint 6.1.3
  • tslint-config-prettier 1.18.0
  • tslint-plugin-prettier 2.3.0
  • vue-jest 4.0.1
  • node ~16.15.0
  • npm ~8.8
nvm
.nvmrc
  • node 16.15
travis
.travis.yml
  • node 16

  • Check this box to trigger a request for Renovate to run again on this repository

specify the day of delivery

To be able to have a delivery on Thursday evening, an order has to be passed before the previous Tuesday 7pm

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.