Code Monkey home page Code Monkey logo

lt-server's Introduction

lt-server

Description

This project is the server which is ment to manage companies information. The project is structured following good practices and oriented to be scalable to support high concurrent users.

Table of Contents

Server

Installation

  • Install nvm in order to use different versions of node
# clone the repo
$ git https://github.com/joseceron/lt-server.git
 
# go into app's directory
$ cd lt-server
 
# use node version 12.13.0
$ nvm install 16.14.0
$ nvm use 16.14.0
 
# install app's dependencies
$ npm install

Quick Start

  • Create .env file for environment variables:
    • PORT
    • SENDGRID_API_KEY
    • AWS_ACCESS_KEY_ID
    • AWS_SECRET_ACCESS_KEY
lt-server
├── .env         # environment variables file
├── src/            
└── package.json
...

Server usage in development mode

# serve at localhost:8000 
npm start
 
# run unit tests
npm run test-watch

Server usage in production mode

# build
npm run build
 
# start js
npm start-js

Docker

# 1. clone image
docker pull dockerjctest1/lt-server
# OR 1. build image
docker build -t dockerHubUser/projectName .
 
# run 
docker run -d --rm -p 8000:8000 --name lt-server dockerjctest1/lt-server
 
# stop docker
docker stop lt-server

Documentation and design

  • View User stories here
  • View microservice API Gw architecture design here
  • Postman file here

What is included

Within the download you will find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You will see something like this:

lt-server
│
├── src/             # project root
│   ├── application/          # application services folder
│        ├── useCases/          # use cases folder
│   ├── domain/               # domain model and services folder
│        ├── entities/
│        ├── exceptions/
│        ├── repositories/
│        ├── services/
│        ├── utils/
│   ├── infrastructure/      # infrastructure and apis folder
│        ├── driven-adapters/
│        ├── driving-adapters/
│        ├── implementations/
│        ├── tests/
│
├── .dockerignore/            # docker ignore files
├── .eslintrc.json/             # linter configuration
├── Dockerfile                  # docker commands
├── tsconfig.json              # compiler options
└── package.json              # libraries and scripts

Frontend

  • Go to this repository to execute the front end project

Features and technologies

  • AWS SDK
  • Express, middleware: to set api logic and session authentication.
  • moment: parse, validate, manipulate, and display dates and times in JavaScript.
  • bcryptjs, uuid, eslint, nodemon, typescript, sendgrid, jsonwebtoken
  • dotenv: loads environment variables from .env files
  • jest, supertest: library for testing HTTP servers
  • swagger-ui-express: for API documentation
  • Persistance: DynamoDB and document client
  • Microservices approach using onion architecture

Table of Contents

[TOCM]

[TOC]

lt-server's People

Contributors

joseceron avatar

Watchers

 avatar  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.