Skip to content

sreegithub19/nestjs_app

Repository files navigation

Details:

  • View this project demo : https://user-images.githubusercontent.com/55496113/219962373-01ca79b7-a247-4839-9994-9c540bdd402d.mp4

  • Nest. JS is a framework that helps build Node. JS server-side applications. The Nest framework is built using TypeScript which allows developers to build highly scalable and testable applications. Built on top of Express.

  • Github link to NestJS.

  • About this project:

    • This project consists of the implementation of a few games and apps using NestJS, and deployed onto Vercel.

    • Following apps have been implemented:

      • Calculator: A calculator covering the fundamental operations - Addition, Subtraction, Multiplication, Division, and Clear Screen.

      • Maze: A maze for navigating the object to the destination. It exists in four levels of difficulty: Easy, Medium, Hard, Extreme.

      • Tic tac toe: The first symbol (X/O) to get 3 consecutive boxes filled upon alternative turns of filling the boxes in the grid (we have implemented for 3X3 grid) would be the winner. After one game is over, the user is allowed to Restart the game.

      • Analogue clock: Analogue clock showing the current time.

      • Hangman: User will have to guess the phrase with 5 guesses. The user can reset the phrase at anytime during the game.

      • Puzzles: User will have to rearrange the pieces to form the picture that is shown on the screen. The steps and time taken are counted.

        • There are a sample of 5 images in this app.
        • This game has 4 levels of difficulty:
          • Easy (3x3)
          • Medium (4x4)
          • Hard (5x5)
          • Very hard (6x6)
      • Sudoku:

        • This is an implementation of the game of Sudoku, and it demonstrates how developers can use HTML5 and JavaScript to create an efficient algorithm to solve these puzzles. The algorithms draw heavily on the Chakra engine’s support for ECMAScript 5 standard array operations to rapidly solve many Sudoku games. We can also manually solve Sudoku puzzles.
        • Courtesy: https://github.com/MicrosoftEdge/Sudoku
      • Virtual Keyboard: Implementation of keyboard with fundamental functionality.

      • Solitaire: Implementation of Solitaire (stacking cards of alternating colors (red and black) one below the other). Here, we have the following features:

        • The ability to undo moves
        • Switch between light and dark themes
        • Start a new game in the middle of another game
      • Chess: Implementation of Chess

      • Dino:

      • Sass:

        • Styling using SASS/SCSS
      • Tilted maze:

        • Four dots are supposed to be combined into one,and should be directed into the dotted circle in between. This movement should be done with the help of a virtual joystick. This game is there in 2 modes:
          • Easy: Plain version, as mentioned above
          • Hard: There are "potholes" in the maze. The game will stop when any of the dots falls into a pothole. Toggling between easy and hard mode is by pressing on keyboard (E/e) and (H/h).
          • Courtesy: https://youtu.be/bTk6dcAckuI
      • Codepen:

        • Simulation of Codepen, wherein we can code and see the browser result simultaneously.

Steps to run: https://docs.nestjs.com/first-steps

  • npm i -g @nestjs/cli
  • nest new nestjs_app
  • cd nestjs_app
  • npm init (let the extra lines come in package.json)
  • npm install
  • npm run start (http://localhost:3000/)

Versions used in this project:

  • Angular CLI: 14.1.2
  • Node : 16.10.0
  • Package Manager: npm 7.24.0

Deployment :

  • link: https://trilon.io/blog/deploying-nestjs-to-zeit-now

  • npm i -g now vercel

  • now login

  • now.json (fill it)

  • npm run build && now

  • vercel --prod ( to override later)

    (Everytime there is a git push, the steps to be followed to include even deployment into Vercel):

    • git add .
    • git commit -m "Changes"
    • git push origin master
    • npm run build && now (enter through all questions)
    • vercel --prod

    (All in one command) :

    • git add . && git commit -m "Changes" && git push origin master && npm run build && now && vercel --prod
    • git add . && git commit -m "Changes" && git push origin master && vercel --prod

(Note): Direct pull / clone from remote repo and deployment might result in failed deployment due to absence of "dist" folder. This folder is generated only by running the project locally atleast once.


Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published