All Projects → jamg44 → Nodetyped

jamg44 / Nodetyped

Licence: mit
Node.js Express Startup Seed with ES6, Typescript, SCSS, EJS, Nodemon, Bootstrap 4, TSLint, TypeDoc

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Nodetyped

Feathers Vue
A boiler plate template using Feathers with Email Verification, Vue 2 with Server Side Rendering, stylus, scss, jade, babel, webpack, ES 6-8, login form, user authorization, and SEO
Stars: ✭ 195 (+182.61%)
Mutual labels:  express, jasmine, scss
Vue Bootstrap With Material Design
Vue Bootstrap with Material Design - Powerful and free UI KIT
Stars: ✭ 803 (+1063.77%)
Mutual labels:  scss, bootstrap4
Sleek Dashboard
Sleek Dashboard - Free Bootstrap 4 Admin Template and UI Kit
Stars: ✭ 690 (+900%)
Mutual labels:  scss, bootstrap4
Express
Express + Sequelize + Winston + Jasmine + TypeScript + Webpack MVC Boilerplate
Stars: ✭ 9 (-86.96%)
Mutual labels:  express, jasmine
Vvvebjs
Drag and drop website builder javascript library.
Stars: ✭ 4,609 (+6579.71%)
Mutual labels:  scss, bootstrap4
Theme Machine
A collection of stylized Bootstrap Themes
Stars: ✭ 585 (+747.83%)
Mutual labels:  scss, bootstrap4
Bs4 Nodejs Static
A basic template to develop a website based on Bootstrap 4
Stars: ✭ 17 (-75.36%)
Mutual labels:  scss, bootstrap4
Select2 Bootstrap4 Theme
Select2 v4 theme for Bootstrap4
Stars: ✭ 305 (+342.03%)
Mutual labels:  scss, bootstrap4
Cmms
Computerized Maintenance Management System
Stars: ✭ 31 (-55.07%)
Mutual labels:  express, ejs
Jekyll Bootstrap4
Bootstrap 4 with Jekyll minimalistic example site
Stars: ✭ 43 (-37.68%)
Mutual labels:  scss, bootstrap4
React Node Learn
一个脚手架项目,node+express+react快速搭建大前端项目,实现前后端分离
Stars: ✭ 51 (-26.09%)
Mutual labels:  express, nodemon
Coreui
Open Source UI Kit built on top of Bootstrap 4 and plain JavaScript without any additional libraries like jQuery
Stars: ✭ 361 (+423.19%)
Mutual labels:  scss, bootstrap4
Express Starter
🚚 A boilerplate for Node.js, Express, Mongoose, Heroku, Atlas, Nodemon, PM2, and Babel. REST / GraphQL API Server | PaaS | SaaS | CI/CD | Jest | Supertest | Docker | MongoDB | PostgreSQL | Sequelize | Lodash | RxJS | JWT | Passport | WebSocket | Redis | CircleCI | Apollo | DevSecOps | Microservices | Backend Starter Kit | ES6
Stars: ✭ 353 (+411.59%)
Mutual labels:  express, nodemon
Honoka
Honoka is one of the original Bootstrap theme.
Stars: ✭ 634 (+818.84%)
Mutual labels:  scss, bootstrap4
Coreui Free React Admin Template
CoreUI React is a free React admin template based on Bootstrap 5
Stars: ✭ 3,573 (+5078.26%)
Mutual labels:  scss, bootstrap4
Vue Chat
👥Vue全家桶+Socket.io+Express/Koa2打造一个智能聊天室。
Stars: ✭ 887 (+1185.51%)
Mutual labels:  express, scss
Bootstrap Dark
The Definitive Guide to Dark Mode and Bootstrap 4 - A proof of concept
Stars: ✭ 54 (-21.74%)
Mutual labels:  scss, bootstrap4
Openapi Comment Parser
⚓️ JSDoc Comments for the OpenAPI Specification
Stars: ✭ 221 (+220.29%)
Mutual labels:  jsdoc, express
Coreui Free Vue Admin Template
Open source admin template based on Bootstrap 5 and Vue 3
Stars: ✭ 2,951 (+4176.81%)
Mutual labels:  scss, bootstrap4
Docker Compose Nodejs Examples
Finally some real world examples on getting started with Docker Compose and Nodejs
Stars: ✭ 944 (+1268.12%)
Mutual labels:  express, nodemon

NodeTyped

A Node.js starter kit featuring ES6 with Secuential Asynchrony (async/await), Express (Routing middlewares, Web, Api), Typescript, Mongoose, SCSS, EJS, Nodemon, Bootstrap 4, TSLint, TypeDoc, .

  • Simple npm setup and maintenance, without grunt/gulp/webpack/...

  • Support for async/await

Example middleware:

async function(req, res, next) {
    let title = 'NodeTyped Express';
    try {
        let data = await readFile(file, 'utf-8');
        res.render('index', { title: title, dump: data });
    } catch (e) {
        next(e);
    }
}

Requirements

Make sure you have node version >= 8.0

Clone and Install dependencies

# clone the repo
# --depth 1 removes all but one .git commit history
git clone --depth 1 https://github.com/jamg44/NodeTyped.git projectname

# change directory to your new project
cd projectname

# install the repo dependencies with npm
npm install

# start the server
npm run dev

If you want to use mongoose models, start mongodb, check localConfig.js and:

# load sample products in database (defaults to 'test')
npm run loadMocks

Develop

Watch mode

You can start the server in development mode (linter included) with:

npm run dev

Open the browser at:

Start MongoDB, run 'npm run loadMocks', and check:

As you save in your editor, the compiler will rebuild and restart the server.

Other commands

Run the linter manually:

npm run lint

Clean temp folders:

npm run clean

Run the tests:

npm test

Generate docs, the output will be in /doc folder:

npm run doc

Production / Integration

To run the project in a server you'll want to run the built code instead src version.

# deploy the repo to server and run
npm install
npm start

Recommendations

  • To change project name update package.json
"name": "project_name", <-----
...
"dev": "tsc && DEBUG=project_name2:* ... <-----
  • All your functions should return promises for better use with async/await.
let readFile = function(file, encoding) => {
    return new Promise((resolve, reject) => {
        fs.readFile(file, encoding, function(err, data) {
            if (err) {
                return reject(err);
            }
            resolve(data);
        });
    });
};

Roadmap (TODO)

  • API authentication with JWT
  • Add cluster
  • User system (register, login, etc)
  • Add tests
  • Basic panel

License

MIT

Made with ♡ by Javier Miguel González @javiermiguelg

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].