Demo Vapor TIL App

Overview

DemoVapor_TILApp

Reset DB

docker stop postgres
docker rm postgres
docker run --name postgres -e POSTGRES_DB=vapor_database \
  -e POSTGRES_USER=vapor_username \
  -e POSTGRES_PASSWORD=vapor_password \
  -p 5432:5432 -d postgres

cURL sample

curl -s -X POST http://localhost:8080/api/acronyms \
  -H "Content-Type: application/json" \
  -d @- << EOS
{
  "long": "Oh My God",
  "short": "OMG",
  "userID": "1BB31054-9ECD-4258-80CF-BB754E1CA0DD"
}
EOS
curl -s -X POST http://localhost:8080/api/users \
  -H "Content-Type: application/json" \
  -d @- << EOS
{
  "name": "Yoki",
  "username": "yyokii"
}
EOS
curl -s -X PUT http://localhost:8080/api/acronyms/EA20038C-DF32-4D33-8346-3F6C42D3BE46 \
  -H "Content-Type: application/json" \
  -d @- << EOS
{
  "long": "Oh My God",
  "short": "OMG"
}
EOS
curl -s -X DELETE http://localhost:8080/api/acronyms/740B5762-661E-40C9-B2B9-B4601B2D10E1
You might also like...
Demo of a simple ASP.NET Core web API written in Swift

Welcome! This repo is a demo which shows the use of Llama Swift with ASP.NET Core. Llama is my exploratory project to compile "other languages" for .N

A demo project using VIPER architecture and building user interface programmatically
A demo project using VIPER architecture and building user interface programmatically

ProductDiscovery A demo project that building a UIKit user interface programmatically. Because the UI is made of code very long so I have separated it

 MeCab Demo for iOS 15 and SPM
MeCab Demo for iOS 15 and SPM

MeCab Demo for iOS 15 and SPM Sample project for MeCab, a Japanese tokenizer/morphological analyzer. Updated for iOS 15 and SPM. Successor to landonep

 emoji-picker demo 🥰
emoji-picker demo 🥰

emoji-picker demo 🥰 External dependencies Dependencies are managed by Swift Package Manager. SnapKit - a DSL to make Auto Layout easy on both iOS and

Demo project for MOPCON2021

Nav This project is a demo for MOPCON 2021. The topic is SwiftUI Navigation Study. There are 3 ways to see how the code works, which demos different v

Demo of using AVPictureInPictureController with an AVSampleBufferDisplayLayer content source not working on tvOS or macOS

PiP Bug Demo I believe there is an Apple-level framework issue when using AVPictureInPictureController with an AVSampleBufferDisplayLayer content sour

MeetingSample iOS demo workspace

MeetingSample iOS demo workspace

Demo For the IOS application development lecture

IOSLectureCIfilterDemo This is a demo for the CIFilter topic of the IOS Application development lecture. The following topics are included: apply a fi

Demo Swift Lint Two Warnings

DemoSwiftLintTwoWarnings Supports: iOS 10.0 and above Branches: master - stable app releases develop - development branch, merge your feature branches

Owner
yoki
yoki
PushDispatcher-vapor - Simple Api to dispatch push to APNS with p8 file

PushDispatcher - Vapor The purpose of this application is to facilitate the test

Michel Anderson Lütz Teixeira 3 Oct 18, 2022
The demo app demonstrates a real-time application using FindSurface to search point clouds, which ARKit provides, for geometry shapes.

FindSurface-GUIDemo-iOS (Swift) CurvSurf FindSurfaceâ„¢ GUIDemo for iOS (Swift) Overview This demo app demonstrates a real-time application using FindSu

CurvSurf 0 Nov 28, 2022
GoodAsOldPhones is the demo app of Swift tutorial on code school.

GoodAsOldPhones GoodAsOldPhones is the demo app of Swift tutorial on code school. This app demonstates basic use and implementation of tab bar control

Kushal Shingote 5 May 24, 2022
Demo app for SwiftUI state management

StateObject vs ObservedObject Demo Demo app for SwiftUI state management Run the app and push 3 buttons to increase each counter. Toggle one of the to

Serhii Kyrylenko 0 Oct 13, 2021
Official demo app released by Apple to teach SwiftUI

Landmarks This repository contains a demo application that I developed while following Apple's SwiftUI tutorials. Cloning Clone the repository using c

Yasin Osman 3 Nov 19, 2021
This is a demo project which contains the steps to create App with TunnelRay library

This is a demo project which contains the steps to create App with TunnelRay library Environment requirements: XCode: > 13.1 Cocoapods: > 1.11.2 Detai

null 2 Oct 17, 2022
A simple demo app to showcase streaming HLS with SwiftUI Videoplayer

HLS Streaming with SwiftUI Basic implementation of VideoPlayer for SwiftUI to play remote media files using HTTP Live Streaming (HLS). Multiple views

Create with Swift 17 Dec 14, 2022
LOL Champions app: a small Multi-Module demo application to demonstrate modern iOS application tech-stacks with a Multi-module and MVVM architecture

LOL Champions app: a small Multi-Module demo application to demonstrate modern iOS application tech-stacks with a Multi-module and MVVM architecture

Ahmed Nasser 5 Jun 9, 2022
Demo project using React Native technology to create a simple iOS app to find music in iTunes

React Native, native iOS apps with JavaScript iTunesCatalog is a demo app that aims to show the React Native platform potential. There are included th

Alexis Santos Pérez 55 Feb 10, 2022
Intro to iOS Workshop - Demo App

WeArePennStateApp Intro to iOS Workshop - Demo App We Are, Penn State! Requirements: Build an app in Swift that allows you to perform the We Are Penn

Kelly Hutchison 2 Feb 14, 2022