Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
Garrett Mills b33cc21dad
Apply cors before routes
4 роки тому
app Apply cors before routes 4 роки тому
config add link sharing 5 роки тому
uploads Big Bang 5 роки тому
.gitignore Big Bang 5 роки тому
LICENSE Big Bang 5 роки тому
README.md Big Bang 5 роки тому
Units.flitter.js Apply cors before routes 4 роки тому
docker-compose.yml Big Bang 5 роки тому
docker.env Big Bang 5 роки тому
example.env add link sharing 5 роки тому
flaps.json update libflitter/flap & run migrations 5 роки тому
flitter Big Bang 5 роки тому
index.js Big Bang 5 роки тому
package.json Set permissive CORS 4 роки тому
todo.txt cleanup inline scripts and centralize editor theme 5 роки тому
yarn.lock Set permissive CORS 4 роки тому

README.md

Flitter

Flitter is a quick & ligthweight web app framework based on Express.

What?

Flitter is an MVC style framework that aims to get you up and running faster by providing a structure and a wrapper for Express.js. Files in predictable directories are parsed into routes, middleware, controllers, models, and views.

Flitter provides access to the Express app, while making it possible to create an app without needing to piece together the Express framework.

Flitter Provides:

  • Express for routing
  • Mongoose for ODM
  • Busboy for request parsing
  • Favicon support
  • ./flitter - CLI tools for Flitter (including an interactive shell)
  • User auth & sessions (see below)

How?

Getting started with Flitter is easy. To create a new project, simply run the following commands:

# Download Flitter:
git clone https://git.glmdev.tech/flitter/flitter {project_name}
cd {project_name}

# Install dependencies:
yarn install

# Create default config:
cp example.env .env

# Launch Flitter!
./flitter up

And voilà! You should have a Flitter app up and running on port 8000 by default.

Why?

Flitter's creator is a former Laravel junkie, but loves Node and Express. He got tired of having to hammer out the same 500 lines of code to start every project, but didn't want the bulk and obfuscation of larger frameworks like AdonisJS.

Flitter is designed to be compartmentalized and easy to understand. Every piece of its core functionality is broken into "units." Each of these units does some task like loading config, parsing middleware, connecting to the database, etc. You can see exactly what units your application is loading by viewing the Units file in config/Units.flitter.js. Each of Flitters core units are open to view in the libflitter package.

Of course, this also means that Flitter is extremely easy to extend. If you want to add a custom package, simply require it and add its unit to the Units file!

Who?

Flitter was created by Garrett Mills, and its use is governed by the terms of the MIT License as specified in the LICENSE file.

Of course, that does mean that Flitter is © 2019 Garrett Mills. ;)

Auth?

Out of the box, Flitter ships with a ready-to-use user registration/login/session system called flitter-auth. Flitter Auth provides:

  • Registration & Login
  • RequireAuth and RequireGuest route middlewares
  • A customizable User model w/ Bcrypt hashed passwords
  • User session support with logout functions

To get started using Flitter Auth, just run:

./flitter deploy auth

This command will copy the necessary files to your Flitter install. The files are directly accessible and, therefore, completely customizable.