All Projects → IngDeiver → express-typescript-template-generator

IngDeiver / express-typescript-template-generator

Licence: MIT License
Base express.js template with TypeScript and best practices ready for start to coding

Programming Languages

HTML
75241 projects
typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to express-typescript-template-generator

Book-Trading-Club
A sample application using node.js api and vuejs
Stars: ✭ 20 (-33.33%)
Mutual labels:  expressjs
deepword
Web editor based on Monaco
Stars: ✭ 25 (-16.67%)
Mutual labels:  expressjs
nextjs-typescript-express-boilerplate
A next.js boilerplate app with Typescript and an Express API server
Stars: ✭ 30 (+0%)
Mutual labels:  expressjs
mern-chatting-app
Chatting application where you can join different rooms and chat with people from around the globe.
Stars: ✭ 39 (+30%)
Mutual labels:  expressjs
Fullstack-projects-frontend-with-react-and-backend-with-various-stacks
* W.I.P *🛠 Full-on full stack front end and a bit of back end web development challenge. Challenging every day to learn new stuffs about react & its in-depth features and also to explore the taste of various stacks.
Stars: ✭ 100 (+233.33%)
Mutual labels:  expressjs
node-express-rest-api-example
A Basic Node.js/Express REST API implementation example
Stars: ✭ 40 (+33.33%)
Mutual labels:  expressjs
spotify-auth-code-example-vue
VueJS boilerplate app with Spotify API authentication and data fetching.
Stars: ✭ 12 (-60%)
Mutual labels:  expressjs
edgestack
[UNMAINTAINED] A Universal React Stack with deeply integrated localization Support, semi-automatic route-based code splitting, Hot Module Reloading (HMR), Redux, Apollo GraphQL and more...
Stars: ✭ 77 (+156.67%)
Mutual labels:  expressjs
passport-examples
A variety of examples using PassportJS with ExpressJS and ReactJS applications
Stars: ✭ 44 (+46.67%)
Mutual labels:  expressjs
Quora
Building An Exclusive Community of PEC Graduates and Students.The main features of the website are “PEC Quora” and “PEC Connect”
Stars: ✭ 26 (-13.33%)
Mutual labels:  expressjs
react-point-of-sale
A simple point of sale app built in nodejs and reactjs
Stars: ✭ 185 (+516.67%)
Mutual labels:  expressjs
Books-Library-API
A starter template for building a restful API with nestjs, nodejs , expressjs , monogdb, mongoose
Stars: ✭ 21 (-30%)
Mutual labels:  expressjs
encryptlab
🔑 Comprehensive (and free) list of encryption and decryption in Node.js.
Stars: ✭ 80 (+166.67%)
Mutual labels:  expressjs
express-api-structure
Structure for Express based API server
Stars: ✭ 79 (+163.33%)
Mutual labels:  expressjs
integrate-io
Cross-Post your blogs between dev.to, Medium and Hashnode 🔀
Stars: ✭ 21 (-30%)
Mutual labels:  expressjs
mock-req-res
Extensible mock req / res objects for use in unit tests of Express controller and middleware functions.
Stars: ✭ 39 (+30%)
Mutual labels:  expressjs
okta-graphql-react-express-example
Web App with Express, React and GraphQL
Stars: ✭ 20 (-33.33%)
Mutual labels:  expressjs
expross
Expross is a lightweight webserver to introduce JavaScript developers familiar with Express to Python.
Stars: ✭ 27 (-10%)
Mutual labels:  expressjs
SEO-Dashboard
SEO dashboard from Search console Data using the Google Search API, Mysql database , NodeJS RESTAPI( ExpressJS) and reactJs Dashboard
Stars: ✭ 39 (+30%)
Mutual labels:  expressjs
giuseppe
A controller routing system for expressJS with TypeScript decorators and annotations
Stars: ✭ 49 (+63.33%)
Mutual labels:  expressjs

Welcome to Express with typescript and good practices template 👋

License: MIT Build Downloads

Base express.js template with TypeScript and best practices ready for start to coding.

Feactures

  • Selector of features to use
  • Typescript
  • Dodumentation with jsdoc (available in jsdoc/docs/index.html)
  • Commits convections
  • Eslint
  • Repository pattern
  • DTO pattern
  • Validation request data with middlewares
  • Global error handler
  • Mogoose config
  • Dotenv config
  • Testing with jest
  • Pretty logs with winston
  • Pretty routes pattern

Project structure

📦src # Main folder of code
 ┣ 📂config # Folder for  app config, here there is files like dotenv config ig 
 ┣ 📂controller # Folder for handlers functions called from routes
 ┣ 📂dtos # DTO pattern for handle data of models
 ┣ 📂exceptions # Global handle error and custom exceptions
 ┣ 📂interfaces # Interfaces for greater abstraction
 ┣ 📂middlewares # Folder for express middlewares
 ┣ 📂models # Schemas of mongodb for handle data
 ┣ 📂repository # Pattern repository for disengage database engine
 ┣ 📂routes # Express routes for slices
 ┣ 📂server # Express server instance
 ┣ 📂services # Services for write core code bussiness
 ┣ 📂utils # Utils for usage in the application like logger utils
 ┣ 📜app.ts # Main file of project
 ┗ 📜setupTests.ts # Config for testing with jest

Installation

$ npm i -g express-typescript-template-generator

Use

$ express-typescript-template-generator
$ cd <project-name>

Configure your .env file with the necessary environment variables. Create the .env and .env.dev files at the root of the project with:

  • DB_URI=your database uri

Development usage

$ npm run tsc
$ npm run dev

Open the browser in: http://localhost:3000/api/user.

Production usage

$ npm start

Run tests

$ npm run test

Create documentation

$ npm run jsdoc

Eslint

$ npm run lint
$ npm run lint:fix

Author

👤 Deiver Carrascal

Show your support

Give a ⭐️ if this project helped you!. Can make pull request to contribute!.


This README was generated with ❤️ by readme-md-generator

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].