All Projects → davidcostadev → fastexpress

davidcostadev / fastexpress

Licence: MIT license
Restful API Framework minimalist

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to fastexpress

Koa2 Blog
第一个web项目,仿照cnode,欢迎新建账号试用
Stars: ✭ 141 (+907.14%)
Mutual labels:  sequelize
Cli
The Sequelize CLI
Stars: ✭ 2,248 (+15957.14%)
Mutual labels:  sequelize
Sequelize Docs Zh Cn
Sequelize 文档的中文版本: v4.42.0 | v5.21.5 | v6.6.5
Stars: ✭ 2,745 (+19507.14%)
Mutual labels:  sequelize
Node Express Postgresql Sequelize
Node.js, Express.js, Sequelize.js and PostgreSQL RESTful API
Stars: ✭ 148 (+957.14%)
Mutual labels:  sequelize
Next Postgres Sequelize
React 16.8.4 + NextJS 8.0.3 + Emotion + Sequelize 5/Postgres + Passport Local Auth + Google App Engine or Heroku Deployment
Stars: ✭ 176 (+1157.14%)
Mutual labels:  sequelize
Sequelize Auto
Automatically generate bare sequelize models from your database.
Stars: ✭ 2,494 (+17714.29%)
Mutual labels:  sequelize
Open Rest
Standard rest server, Base on restify and sequelize
Stars: ✭ 136 (+871.43%)
Mutual labels:  sequelize
nestjs-api-mongoose
Collection example apps with NestJS and Typeorm, Sequelize, Mongodb, PostgreSQL, MySQL, GraphQL, Mercurius, etc. for the NestJS community 😻
Stars: ✭ 153 (+992.86%)
Mutual labels:  sequelize
Connect Session Sequelize
Sequelize SessionStore for Express/Connect
Stars: ✭ 179 (+1178.57%)
Mutual labels:  sequelize
Sequelize Auto Migrations
Migration generator && runner for sequelize
Stars: ✭ 233 (+1564.29%)
Mutual labels:  sequelize
Sequelize Typescript
Decorators and some other features for sequelize
Stars: ✭ 2,200 (+15614.29%)
Mutual labels:  sequelize
Feathers Sequelize
A Feathers service adapter for the Sequelize ORM. Supporting MySQL, MariaDB, Postgres, SQLite, and SQL Server
Stars: ✭ 176 (+1157.14%)
Mutual labels:  sequelize
Venture Management
一个包含vuejs和nodejs技术的全栈项目
Stars: ✭ 208 (+1385.71%)
Mutual labels:  sequelize
Sequelize Ui
Browser-based GUI for previewing and generating Sequelize project files.
Stars: ✭ 142 (+914.29%)
Mutual labels:  sequelize
Typescript Express Starter
🚀 TypeScript Express Starter
Stars: ✭ 238 (+1600%)
Mutual labels:  sequelize
Sequelize Transparent Cache
Simple to use and universal cache layer for Sequelize
Stars: ✭ 137 (+878.57%)
Mutual labels:  sequelize
Crate
👕 👖 📦 A sample web and mobile application built with Node, Express, React, React Native, Redux and GraphQL. Very basic replica of stitchfix.com / krate.in (allows users to get monthly subscription of trendy clothes and accessories).
Stars: ✭ 2,281 (+16192.86%)
Mutual labels:  sequelize
sequelize-embed
Easily insert and update sequelize models with deeply nested associations
Stars: ✭ 15 (+7.14%)
Mutual labels:  sequelize
TypeScript-in-Nodejs-Starter
A starter kit for Node.js project written with TypeScript.
Stars: ✭ 39 (+178.57%)
Mutual labels:  sequelize
Express Starter
It's a hackathon-starter fork, but designed to use PostgreSQL by default (or MySQL)
Stars: ✭ 215 (+1435.71%)
Mutual labels:  sequelize

fastexpress

Open Source Love Build Status CircleCI Maintainability Test Coverage GitHub license npm version Open Source Helpers PRs Welcome


fastexpress is a library designed to speed up the development of APIs with express and sequelize. It's has a list of functionalities to create APIs with a small amount of lines of code, with possibility to customize it.

The main functionalities is:

  • Improve the creation of model endpoints.
  • Create CRUDs with few rows.
  • Add rich integration with templates, allowing filters and joins.
  • Add secure endpoints through token usage (jwt).

Installation

  • npm install --global fastexpress
  • fastexpress new [your-project-name]
  • cd your-project-name
  • npm install or yarn
  • cp config/example.database.json config/database.json
  • npm run sequelize db:create

Generate a resource

On root of your project

  • fastexpress resource [resourceName] --attributes title:string check:boolean birthday:date
  • npm run sequelize db:migrate
  • npm run sequelize db:seed:all # (optional)

Attributes

  • string
  • number or integer
  • text
  • boolean
  • date or datetime

After that, you just need import and add the resource on Router. Like this on src/routers.js file:

const { Resources } = require('fastexpress');
const [ResourceName] = require('./resources/[ResourceName]');

const routers = new Resources({
  namespace: '/api/v1/',
})
  .add('[resourceName]', [ResourceName])
  .getRouters();

Development

  • npm run dev

Basic Endpoints

  • [get] /api
  • [get] /api/v1

Resources Endpoints

  • [get] /api/v1/[resourceName] - to list resource
  • [post] /api/v1/[resourceName] - to add a new entity
  • [get] /api/v1/[resourceName]/:id - to get a one entity
  • [delete] /api/v1/[resourceName]/:id - to delete a entity
  • [put] /api/v1/[resourceName]/:id - to edit a entity

Examples

Basic

This is a basic example of usage of the fastexpress.

fastexpress development

CONTRIBUTING.md

Open Source

We uses the MIT license.

If you have any question/bug/suggestion just create a new issue!

Author

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