Project for my Personal Site
lukeautry / ts-app Goto Github PK
View Code? Open in Web Editor NEWBoilerplate project for a TypeScript API (Express, tsoa) + UI (React/TSX)
Boilerplate project for a TypeScript API (Express, tsoa) + UI (React/TSX)
Project for my Personal Site
Can you please update to tsoa v3?
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!
โ 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.
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.
I just want to thank you for this project!
it got me inspired to start something similar (but with some different focus areas), check it out here: https://github.com/RaedsLab/demo-project
I'd love your feedback on the overall approach.
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
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.
I looked in scripts and couldn't find a command for this. Please tell us how the client is generated?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.