All Projects → glarivie → Express-API-Boilerplate

glarivie / Express-API-Boilerplate

Licence: MIT license
Starting point for a new Node.js Restful Api

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Express-API-Boilerplate

talk.js
🎙 A monthly meet up for all things JavaScript, Node.js, and the modern web
Stars: ✭ 75 (+275%)
Mutual labels:  es8
Ecmascript New Features List
A comprehensive list of new ES features, including ES2015 (ES6), ES2016, ES2017, ES2018, ES2019
Stars: ✭ 3,030 (+15050%)
Mutual labels:  es8
minnie-janus
Small, ES8, isomorphic library for interfacing with the Janus WebRTC gateway.
Stars: ✭ 28 (+40%)
Mutual labels:  es8
fromentries
Object.fromEntries() ponyfill (in 6 lines)
Stars: ✭ 62 (+210%)
Mutual labels:  es8
express-mongoose-es8-rest-api
A Boilerplate for developing Rest api's in Node.js using express with support for ES6,ES7,ES8 ,Mongoose,JWT for authentication,Standardjs for linting
Stars: ✭ 20 (+0%)
Mutual labels:  es8
webpack-starter-pug-sass-es6-jquery
Webpack 5 starter that supports Pug, SASS, ES6 ES7 ES8 ES9 ES10 ES11 ES12, VanillaJS/jQuery... (without framework) and generate URLs without the .html extension.
Stars: ✭ 102 (+410%)
Mutual labels:  es8
async-await-codemod
Codemod script for migrating promise-based functions to use async/await syntax
Stars: ✭ 22 (+10%)
Mutual labels:  es8
Keeping-Up-With-the-Javascripts
Code snippets and challenges for the "Keeping Up With the Javascripts" course, available at Pirple.com
Stars: ✭ 104 (+420%)
Mutual labels:  es8

Starting point for a new Node.js Restful Api

The project includes full featured development kit to easily kickstart a new node API. It includes Docker/Mongo/Mariadb(Mysql) configuration files + a full Babel/Node.js ES6+ setup.

How to use ?

Clone the project and install dependencies

git clone [email protected]:hqro/Node-API-Boilterplate.git demo
cd demo
yarn install

Don't forget to remove .git directory

rm -Rvf .git
git init
git remote add ...

Development mode

yarn start

Tests mode

yarn test

Production mode

yarn build
yarn production

Full development environment with Docker

This projet can be start directly from Docker containers. You need to install docker and docker-compose to try this feature.

docker network create boilerplate
docker-compose -f stack.yml up -d

It will launch a Node.js, a MongoDB and a MariaDB instance with on your local machine with a persistant volume. You can check the configuration on stack.yml file. Don't forget to uncomment lines on index.js.

Aliases

You can now import easily from the root directory using @ symbol or with root folders names.

import '@/config/express' // import './config/express'
import demoHlpr from 'helpers/demo' // import demoHlpr from '../helpers/demo'
Why ?

This is a simple starter boilerplate to avoid to configure the same things each time you start a new project.

How it works ?

All the important files are in the src folder. The Express and Mongoose configuration files are in src/config folder. Each time you want to add a new route to your Api, you can call your mongoose schema, callback you controller and make the logic from an helper. Use de .env file to store your important informations such as your server port, your mongo password, or maybe an OAuth key...

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