Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR - TypeScript Conversion #136

Open
dominick-more opened this issue Jul 20, 2021 · 6 comments
Open

PR - TypeScript Conversion #136

dominick-more opened this issue Jul 20, 2021 · 6 comments

Comments

@dominick-more
Copy link

I set for myself the goal to make a "mini" app project, in order to showcase my skills and thought about what the basic functionality of backend server required, so that I can execute async calls from my client code, and add records in a db, so I saw the work that you did and think it's really quite well thought through, but I also want to demonstrate my typescript abilities.
I wanted to use your work for a basis and did a complete typescript overhaul of all src and tests js files. All existing package.json scripts are running as before with noted changes (I will point these out in a pr).

Scope of changes:

Code:
All function parameters and return types defined (where practical)
Best effort to keep the original function signtatures unchanged.

Build-Configuration:
Due to inclusion of TypeScript, have modified executable dev dependencies 'ts-node' for 'dev' script, babel-jest for 'test' script and 'babel-ci' for the 'server' script transpilation to 'dist' out directory.

Eslint:
Have replaced extends "airbnb-base" with "airbnb-typescript" (and other typescript contraints).

Docker:
Reordered DockerFile 'USER node' to first execution position and creating the checkout working directory /home/user/nope-app.

@dominick-more
Copy link
Author

Please advise if you are interested in seeing the changes in this PR.

@trasherdk
Copy link

Sounds interesting.
Can you put it up in a repository? I would like to take a look.

@dominick-more
Copy link
Author

I have added the code to https://github.com/dominick-more/node-express-typescript-boilerplate/tree/pr/typescript-conversion

@trasherdk
Copy link

@dominick-more Thanks..

@markvital
Copy link

Any update on this?
It would be cool to have a Typescript version of this boilerplate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants