Skip to content

it5prasoon/github-repo-creator-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

How to

To create a repository, follow 3 simple steps and it will create a repository with a sample file in it.

  1. Authorize with Github (Just like Google, Facebook etc.)
  2. Enter Repository name in the text box and wait for popup "Repository created successfully."
  3. Once Repository is created, Upload sample file. (The sample fie is currently hardcoded at the backend but can be uploaded from frontend side just need to create a route for that - left that for future scope)

All the route information can be found in github.controller.ts file.

Deployment

URL: https://github-repo-creator-api.onrender.com/

NOTE: Sometime the site takes longer to load due to initialization time as it is a free tier the server goes to idle state when unused for several hours.

Both frontend and backend are deployed on same origin using app.useStaticAssets(join(__dirname, '../../frontend').toString()); method of express.

Screenshots

When Authorized When Unauthorized

Dependencies used

Database used is: sqlite3 with typeorm

    "@nestjs/common": "^10.0.2",
    "@nestjs/config": "^3.0.0",
    "@nestjs/core": "^10.0.2",
    "@nestjs/jwt": "^10.1.0",
    "@nestjs/passport": "^10.0.0",
    "@nestjs/platform-express": "^10.0.3",
    "@nestjs/typeorm": "^10.0.0",
    "@octokit/rest": "^19.0.13",
    "class-transformer": "^0.5.1",
    "class-validator": "^0.14.0",
    "core-js": "^3.31.0",
    "cors": "^2.8.5",
    "passport": "^0.6.0",
    "passport-github": "^1.1.0",
    "passport-jwt": "^4.0.1",
    "rxjs": "^7.8.1",
    "typeorm": "^0.3.17"

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published