Node-TS
Below are the Quicksi Node TypeScript starters, starter name, folder structures, and dependencies.
node-ts-simple
Generate a simple node typescript starter.
# starter dependencies
"devDependencies": {
"ts-node": "^7.0.1",
"typescript": "^3.0.3"
}
Features
- Backend
ts-node
withtypescript
- Typescript configured
After generating this starter, you code will look like this View here
starter name
# starter name
node-ts-simple
node-ts-gql-simple
Generate a simple node and Graphql typescript starter
# starter dependencies
"devDependencies": {
"@pongsatt/graphql-schema-typescript": "^1.0.25",
"nodemon": "^1.18.4",
"typescript": "^3.0.3",
"npm-run-parallel": "^0.6.0"
},
"dependencies": {
"graphql-yoga": "^1.16.2",
"ts-node": "^7.0.1"
}
Features
- Backend
ts-node
withtypescript
- Typescript configured
GraphQL
configured
After generating this starter, you code will look like this View here
starter name
# starter name
node-ts-gql-simple
node-ts-mysql&sequelize
Generate a node typescript project with MySQL and Sequelize
# starter dependencies
"devDependencies": {
"@types/bcryptjs": "^2.4.2",
"@types/bluebird": "^3.5.27",
"@types/express": "^4.17.1",
"@types/express-validator": "^3.0.0",
"@types/jsonwebtoken": "^8.3.4",
"@types/node": "^12.7.5",
"@types/sequelize": "^4.28.4",
"@types/validator": "^10.11.3",
"@typescript-eslint/eslint-plugin": "^1.12.0",
"@typescript-eslint/parser": "^1.12.0",
"nodemon": "^1.19.2",
"ts-node": "^8.3.0",
"typescript": "^3.6.3"
},
"dependencies": {
"@types/dotenv": "^6.1.1",
"bcryptjs": "^2.4.3",
"body-parser": "^1.19.0",
"dotenv": "^8.1.0",
"eslint": "^6.3.0",
"express": "^4.17.1",
"express-validator": "^6.2.0",
"inversify": "^5.0.1",
"jsonwebtoken": "^8.5.1",
"mysql2": "^1.7.0",
"passport": "^0.4.0",
"passport-jwt": "^4.0.0",
"raven-js": "^3.27.2",
"reflect-metadata": "^0.1.13",
"sequelize": "^5.18.4",
"sequelize-cli": "^5.5.1",
"sequelize-typescript": "^1.0.0"
}
Features
- Backend
ts-node
withtypescript
- Typescript configured
MySQL
Database- Sequelize ORM
- Sign-up and Login sample
- Validator for sign-up and sign-in
- Sample user model and migration file with MYSQL
- Sample controller, middlewares and routes for login and Signup
After generating this starter, you code will look like this View here
starter name
# starter name
node-ts-mysql&sequelize
node-ts-typeorm&sqlite
Generates a node typescript project with SQLite and TypeORM configured.
# starter dependencies
"dependencies": {
"@tsed/ajv": "^5.0.7",
"@tsed/common": "^5.0.7",
"@tsed/core": "^5.0.7",
"@tsed/servestatic": "^5.0.7",
"@tsed/swagger": "^5.0.7",
"@tsed/typeorm": "^5.0.7",
"ajv": "^6.6.2",
"bcrypt": "^3.0.3",
"body-parser": "^1.18.3",
"compression": "^1.7.3",
"cookie-parser": "^1.4.3",
"dotenv": "^2.0.0",
"express": "^4.16.4",
"jsonwebtoken": "^8.4.0",
"method-override": "^3.0.0",
"morgan": "^1.9.0",
"nodemailer": "^5.1.0",
"nodemailer-sendgrid-transport": "^0.2.0",
"passport": "^0.4.0",
"passport-jwt": "^4.0.0",
"passport-local": "^1.0.0",
"serve-static": "^1.13.2",
"sqlite3": "^4.0.4",
"swagger-ui-express": "^4.0.2",
"ts-express-decorators": "^5.0.7",
"ts-log-debug": "^4.0.4"
},
"devDependencies": {
"@types/dotenv": "^2.0.20",
"@types/express": "^4.16.0",
"@types/jest": "^21.1.5",
"@types/jsonwebtoken": "^8.3.0",
"@types/morgan": "^1.7.32",
"@types/nodemailer": "^4.6.5",
"@types/swagger-schema-official": "^2.0.14",
"jest": "^21.2.1",
"nodemon": "^1.18.9",
"ts-jest": "^21.1.4",
"ts-node": "^7.0.1",
"typescript": "^3.2.2"
},
Features
- Backend
ts-node
,typescript
and expressJS - SQLite for data storage
- TypeORM for object relational mapping
- PassportJS as authentication middleware
After generating this starter, you code will look like this View here
starter name
# starter name
node-ts-typeorm&sqlite