This is intended to form the bases of a Vapor website, using Postgres as the database.
It defines and handles two model types: User
, and Token
.
It supplies pages to handle:
Some default .leaf
files are supplied with a simple user interface for this.
It is expected that a client of this library will:
.leaf
filesA test project which uses this package as a client can be found here.
Lots of stuff! Including:
To test locally, you need to install postgres (brew install postgresql
).
By default the framework expects a database called "vaporbasetest", a user "vapor", with a password "vapor", running on "localhost" (these details can be changed when setting up a custom site).
You can use psql postgres
, to create the role and database:
CREATE ROLE vapor WITH LOGIN PASSWORD 'vapor';
ALTER ROLE vapor CREATEDB;
CREATE DATABASE vaporbasetest;
If you later need to migrate a database after upgrading postgres, you can do it with brew postgresql-upgrade-database
.
link |
Stars: 0 |
Last commit: 1 year ago |
Added email verification using Mailgun.
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics