GithubHelp home page GithubHelp logo

rent-a-car's Introduction

crud-clubes

A CRUD (Create, Retrieve, Update, Delete) application around a Rent-A-Car Service

C4 Model

L1

C4 Model level 1 diagram

L2

C4 Model level 2 diagram

L3

C4 Model level 3 diagram

Getting started

Install dependecies with npm install

Once installed, rename the .env.dist file to .env and edit the KEY=VALUES according to your use case.

To run the proyect:

npm run start # corre el proyecto en modo producción
npm run dev # corre el proyecto en modo desarrollo
npm run schema:sync # sincroniza la base de datos de sesión y la base de datos principal con los modelos definidos
npm run test # corre tests de jest y recolecta el code coverage
npm run test:dev # corre tests de jest de manera continua (watch)
npm run test:ui # corre pruebas de interfaz en modo "headless"
npm run test:ui:dev # corre pruebas de interfaz con un navegador con el que se puede interactuar
npm run test:integration # corre pruebas de newman (postman)

Proyect structure

Adapted from https://softwareontheroad.com/ideal-nodejs-project-structure/

Path Description
data SQLite databases folder
data/database.db Main database
public/img Stores the static image files used by the server, here the images of the cars are saved
src Contains the application
src/index.js Entry point of the applicaition
src/app.js Configuration of the application
src/config/di.js Dependency Injection manager
src/module Contains the modules of the application
src/module/view Contains the views of the application
src/module/view/layout Contains the diferrent layouts
src/module/view/main.njk Main view of the application
src/module/car Car module
src/module/car/controller Handles http petitions and responses
src/module/car/entity Entity of the model
src/module/car/repository Interacts with the database and the files
src/module/car/service Logic of the module
src/module/club/car.module.js Entry point to the module

rent-a-car's People

Contributors

rodrigoesquel avatar

Watchers

 avatar

Forkers

juanrappa

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.