Giter VIP home page Giter VIP logo

work-sample's Introduction

๐ŸŽ Trot Race Work Sample Project

This repo contains source code of work sample.

โœ‹ Please rename .env.sample to .env and add appropriate environment variables value

๐ŸŸ Docker configuration

Below commpands build images specified in docker-compose.yml file

docker-compose build

Below commands builds the image if they are not located locally and starts the containers. if images are already build, it will run the container directly without build.

docker-compose up

(Please make sure to run docker-compose build command each time making change)

๐Ÿ’พ Accessing container DB

URI mongodb://localhost:27121 (27121 default Specified PORT in docker-compose.yml file)

๐Ÿ“ Local configuration

yarn install

๐Ÿ“ฆ Creating dist source

yarn install
yarn build

โœˆ๏ธ Running application

yarn start

๐Ÿƒ Running application in Development env

yarn start:dev

๐Ÿ› Check linting

Use below command to check linting issues

yarn lint

Use below command to automatically fix the problems

yarn lint:fix

Use below command to automatically fix the problems without saving the changes to the file system

yarn lint:fixdry

Directory Structure

- src
  - config (contains project configuration)
  - db (database configuration)
  - schema (contains mongoose schema)
  - services (contains services which data thoughout application)
  - test (contains unit test files)
  - utils
    - types (contains typescript definations)
  - workers (worker files)
  server.ts (entry point)
  trot-race.ts

Test Details

โœ… Run test

yarn test

โœ… Get the code coverage report

yarn test:coverage

work-sample's People

Contributors

hari-s 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.