This is a vapor web app that I built to demonstrate some projects I've worked on.
- Admin panel to manage projects, tags, links, media.
- User authentication (only one admin can be created through interface)
- User sessions to remain logged in.
- Footer to include means of contact
- Distinctive navbars for appropriate places in the app. e.g. Admin (logged in vs. logged out) and Public facing.
Note: This app uses sachinchoolur's lightgallery.js and requires a license.
Make sure you've got Swift 3, Vapor, and any dependencies installed first.
You can install this by cloning the repo.
git clone https://github.com/mlmc03/portfolio-v2/
You'll need to set up your own PostgreSQL configuration file here Config/secrets/postgresql.json
.
{
"host": "127.0.0.1",
"user": "postgres",
"password": "",
"database": "test",
"port": 5432
}
For help with this, refer to the Vapor PostgreSQL-Provider page.
I used Nginx in my Ubuntu setup. Here's a great tutorial by Digital Ocean to help you get started.
This will run the process on the server so that your site can go "live". Vapor has some documentation on this as well.
This project has been tested on macOS and Ubuntu.