Coder Social home page Coder Social logo

lukeautry / ts-app Goto Github PK

View Code? Open in Web Editor NEW
263.0 263.0 52.0 2.21 MB

Boilerplate project for a TypeScript API (Express, tsoa) + UI (React/TSX)

TypeScript 97.66% Dockerfile 0.05% JavaScript 2.00% EJS 0.29%
express node postgresql react redis typescript webpack

ts-app's Introduction

ts-app's People

Contributors

cipherzzz avatar lukeautry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ts-app's Issues

Can't install with command "yarn"

I cannot make this repository download all the necessary packages when using the command "yarn".

The error I get is when the process is trying to install the package "node-sass".
Output log:

gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Code\Projects\MYPROJECT\MYPROJECT-tests\ts-app\node_modules\node-sass\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:209:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Code\Projects\MYPROJECT\MYPROJECT-tests\ts-app\node_modules\node-sass\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Code\Projects\MYPROJECT\MYPROJECT-tests\ts-app\node_modules\node-sass
gyp ERR! node -v v12.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Add a license file

Currently the only place the licensing for the project is mentioned (as far as I'm aware) is in the package.json file, which lists that the project is licensed under the MIT license. In my opinion, this is a bit out of the way, and I was originally going to file a issue to add a license before I wound up finding it there.

To make the licensing for this project more visible, I recommend creating a LICENSE file in the root directory of the project.

Open api version 3

dear
I am evaluating tsoa to generate an open api v 3.
The sample project is not configured for open api Spec v3.
I change to version
I have changed the Below

ts-app/dev/steps/openapi-spec.ts

But adding specVersion: "3" is breaking the build.

swagger": {
"outputDirectory": "./dist",
"entryFile": "./src/server.ts",
"host": "localhost:3000",
"basePath": "/v1",
"SpecVersion":"3"
},

What am I missing ( i have to say that typescript and nodejs are still new for me)

Thank you

No repository was found.

I'm facing an issue when trying to retrieve a repository using the getRepository method from typeorm in a new controller.

Error message is:

{
    "message": "No repository for \"User\" was found. Looks like this entity is not registered in current \"default\" connection?",
    "name": "RepositoryNotFoundError",
    "status": 500
}

Following the User entity sample, I've created a controller (see below) and I have the given error message.
I checked that the entities entry in ormconfig.js is right setted to [${__dirname}/api/database/entities/*.ts].
Can you provide a working sample to retrieve data from typeorm repository?

Thanks!

ENOENT: no such file or directory, open '/home/ts-app/.tmp/webpack-assets.json'

โœ“ Started server at http://localhost:3000

(node:9099) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/home/ts-app/.tmp/webpack-assets.json'
(node:9099) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:9099) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Don't have a folder .tmp.

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.