![Brian Wagner](/img/default-banner.jpg)
- Видео 23
- Просмотров 195 944
Brian Wagner
Добавлен 30 дек 2006
Learn Buffalo in Go - Part 10 Deploy with Docker
Part 10. Deploy with Docker
Running a Buffalo application inside Docker on a local machine, or deploying to cloud providers.
Also, a sample docker-compose script to run a database inside a container alongside the Buffalo app.
Topics covered:
0:00 - Intro
0:33 - Breakdown of multistage build
1:21 - Modify to run with Nginx
2:35 - Options for running Buffalo inside Docker
4:09 - Heroku plugin
4:41 - Hosted Postgres on Render.com
5:07 - Buffalo dev server connecting to hosted DB
5:21 - Build and run a local docker image
6:25 - Run application on Render.com
7:41 - Sample docker-compose
Docker images:
hub.docker.com/r/gobuffalo/buffalo
hub.docker.com/_/postgres
hub.docker.com/_/nginx
Github repo:
github.com/briw...
Running a Buffalo application inside Docker on a local machine, or deploying to cloud providers.
Also, a sample docker-compose script to run a database inside a container alongside the Buffalo app.
Topics covered:
0:00 - Intro
0:33 - Breakdown of multistage build
1:21 - Modify to run with Nginx
2:35 - Options for running Buffalo inside Docker
4:09 - Heroku plugin
4:41 - Hosted Postgres on Render.com
5:07 - Buffalo dev server connecting to hosted DB
5:21 - Build and run a local docker image
6:25 - Run application on Render.com
7:41 - Sample docker-compose
Docker images:
hub.docker.com/r/gobuffalo/buffalo
hub.docker.com/_/postgres
hub.docker.com/_/nginx
Github repo:
github.com/briw...
Просмотров: 248
Видео
Learn Buffalo in Go - Part 9 Build for Production and Deploy
Просмотров 234Год назад
Part 9. Build for Production and Deploy What happens in production mode; modifying environment settings for production; running the application on a Linux server Topics Covered: 00:00 - Intro to build commands and production settings 00:23 - build command 1:27 - production mode 3:00 - prod mode on a local computer 3:45 - Buffalo TLS server 4:58 - Checklist for remote server 6:42 - App on System...
Learn Buffalo in Go - Part 8 Third-party Integrations and Buffalo Events
Просмотров 226Год назад
Part 8. Third-party Integrations and Buffalo Events Integrate with MongoDB, Slack webhooks, Sendgrid API for email delivery. Topics Covered: 00:00 - Intro to planned integrations 00:17 - Workflow plan: mongoDB, Slack webhook, Sendgrid API 1:16 - Buffalo events 1:44 - Storing credentials in .env file 2:36 - MongoDB instance using Docker compose 3:32 - Mongo check for blocked users 5:16 - Mongo h...
Learn Buffalo in Go - Part 7 Middleware and User Authentication
Просмотров 373Год назад
Part 7. Middleware and User Authentication Topics Covered: 00:00 - Intro to user authentication flows 2:04 - Middleware example in Buffalo 2:42 - Buffalo plugins and buffalo-auth 4:01 - Demo app with buffalo-auth 4:46 - Add password fields to User 6:26 - Add handlers 6:46 - Middleware for authentication 7:13 - Forms for user auth 7:54 - Applying middleware to routes 8:44 - Middleware to load da...
Learn Buffalo in Go - Part 6 Forms
Просмотров 336Год назад
Part 6. Forms Topics Covered: 00:00 - Intro to forms - encoding/decoding, helpers, authenticity_token 1:30 - Use form_for() to map struct to a form 3:06 - Form input tags 4:33 - Use form() helper to build form 5:41 - Forms the hard way: plain HTML 6:18 - Handler to receive form data 7:44 - Show form validation errors 8:23 - SelectTag helper 11:28 - Manually parse form elements 12:49 - Use form ...
Learn Buffalo in Go - Part 5 Templates
Просмотров 358Год назад
Part 5. HTML Templates Topics covered: 00:00 - template basics generated by Buffalo cli 1:00 - default HTML page; modify page title 1:25 - change default favicon 1:38 - create global page regions 3:20 - create partial templates 5:56 - contentFor, contentOf helpers 7:00 - override page template w/ controller 8:06 - plush basics: iterators, if ... else 8:27 - component template patterns 9:28 - li...
Learn Buffalo in Go - Part 4 Controllers
Просмотров 425Год назад
Part 4. Intro to Controllers Topics covered: 00:00 - intro to CRUD patterns used in MVC applications 00:43 - conventional URL patterns for CRUD applications 2:10 - use Buffalo cli to create an action 3:15 - modify the handler to return some data 4:04 - Buffalo grift tasks to seed data in the database 5:20 - create test fixtures to setup data for testing controllers 6:22 - testing controllers wi...
Learn Buffalo in Go - Part 3 Models and Associations
Просмотров 562Год назад
Part 3 Models and Associations Using Buffalo version 16.26 Topics covered: * Patterns of associations * One to one. One to many. Many to many. * Using Buffalo to create a one to one association. * Use Buffalo cli to create model * Modify model and migration to include foreign_key * Test a one-to-one association * Eager method for Buffalo-pop to load and save data Github repo with code used in t...
Learn Buffalo in Go - Part 2 Models
Просмотров 938Год назад
Part 2. Intro to Models and test-driven development Using Buffalo version 16.26 Topics covered: * Models as part of the MVC paradigm * Buffalo patterns inspired by Ruby on Rails and the influence of test-driven development * configure database connections in database.yml file * use the Buffalo cli to generate a model; specify additional fields and field types * running buffalo test command * wr...
Learn Buffalo in Go - Part 10 Deploy with Docker
Просмотров 792 года назад
Part 10. Deploy with Docker Running a Buffalo application inside Docker on a local machine, or deploying to cloud providers. Also, a sample docker-compose script to run a database inside a container alongside the Buffalo app. Topics covered: 0:00 - Intro 0:33 - Breakdown of multistage build 1:21 - Modify to run with Nginx 2:35 - Options for running Buffalo inside Docker 4:09 - Heroku plugin 4:4...
Learn Buffalo in Go - Part 9 Build for Production and Deploy
Просмотров 1372 года назад
Part 9. Build for Production and Deploy What happens in production mode; modifying environment settings for production; running the application on a Linux server Topics Covered: 00:00 - Intro to build commands and production settings 00:23 - build command 1:27 - production mode 3:00 - prod mode on a local computer 3:45 - Buffalo TLS server 4:58 - Checklist for remote server 6:42 - App on System...
Learn Buffalo in Go - Part 8 Third-party Integrations and Buffalo Events
Просмотров 1012 года назад
Part 8. Third-party Integrations and Buffalo Events Integrate with MongoDB, Slack webhooks, Sendgrid API for email delivery. Topics Covered: 00:00 - Intro to planned integrations 00:17 - Workflow plan: mongoDB, Slack webhook, Sendgrid API 1:16 - Buffalo events 1:44 - Storing credentials in .env file 2:36 - MongoDB instance using Docker compose 3:32 - Mongo check for blocked users 5:16 - Mongo h...
Learn Buffalo in Go - Part 7 Middleware and User Authentication
Просмотров 1472 года назад
Part 7. Middleware and User Authentication Topics Covered: 00:00 - Intro to user authentication flows 2:04 - Middleware example in Buffalo 2:42 - Buffalo plugins and buffalo-auth 4:01 - Demo app with buffalo-auth 4:46 - Add password fields to User 6:26 - Add handlers 6:46 - Middleware for authentication 7:13 - Forms for user auth 7:54 - Applying middleware to routes 8:44 - Middleware to load da...
Learn Buffalo in Go - Part 6 Forms
Просмотров 1462 года назад
Part 6. Forms Topics Covered: 00:00 - Intro to forms - encoding/decoding, helpers, authenticity_token 1:30 - Use form_for() to map struct to a form 3:06 - Form input tags 4:33 - Use form() helper to build form 5:41 - Forms the hard way: plain HTML 6:18 - Handler to receive form data 7:44 - Show form validation errors 8:23 - SelectTag helper 11:28 - Manually parse form elements 12:49 - Use form ...
Learn Buffalo in Go - Part 5 Templates
Просмотров 1442 года назад
Part 5. HTML Templates Topics covered: 00:00 - template basics generated by Buffalo cli 1:00 - default HTML page; modify page title 1:25 - change default favicon 1:38 - create global page regions 3:20 - create partial templates 5:56 - contentFor, contentOf helpers 7:00 - override page template w/ controller 8:06 - plush basics: iterators, if ... else 8:27 - component template patterns 9:28 - li...
Learn Buffalo in Go - Part 4 Controllers
Просмотров 2262 года назад
Learn Buffalo in Go - Part 4 Controllers
Learn Buffalo in Go - Part 3.2 Models and Associations
Просмотров 1802 года назад
Learn Buffalo in Go - Part 3.2 Models and Associations
Learn Buffalo in Go - Part 3 Models and Associations
Просмотров 3702 года назад
Learn Buffalo in Go - Part 3 Models and Associations
Web application development with Buffalo, in Golang
Просмотров 5 тыс.2 года назад
Web application development with Buffalo, in Golang
Guitar Rig's Loop Machine and Rig Kontrol Pedal Board
Просмотров 90 тыс.9 лет назад
Guitar Rig's Loop Machine and Rig Kontrol Pedal Board
Using StaffPad on MS Surface, Workflow for Writing Music Notation
Просмотров 38 тыс.9 лет назад
Using StaffPad on MS Surface, Workflow for Writing Music Notation
Sony Vegas Example - Multi-picture screen with Nested Projects
Просмотров 57 тыс.12 лет назад
Sony Vegas Example - Multi-picture screen with Nested Projects
Fantastic series, thanks!
and 2024 with guitar rig 7 ?
they started rebuilding everything in GR a couple years ago. They didn't have any looping for a while, but now there is a new Loop Machine Pro. I haven't used it. And I don't think Rig Control is supported anymore. I think the last version that worked with it was GuitarRig 5.
Thanks, yes i used guitar rig 5 in ableton 10 with rig control 3 under win 11. That was great because it was made for the software and I had all in one controler (which is still in a good condition). The setup does not work anymore. And I dont want to spent time to setup roland or behringer devices. So its also not worth for me to update guitar rig. I have to figure out something more convinient which means more pedals again.
@@georgehuss2976 yeah it's a bummer they stopped supporting this stuff. It's crazy what new pedals cost today! Good luck with your setup
In the SetCurrentUser() in auth.go After checking all the conditions of the user, when I set the current_user var using "c.Set("current_user", user)" I am able to access the current_user variable in navbar.plush.html file but I am not able to access the current_user variable in app.go using "c.Session().Get("current_user") or c.Value("current_user")" But, when I set the user using "c.Session().Set("current_user", user)" I am able to access the current_user variable in app.go file but not in navbar.plush.html file, why is this happening and what is this solution and also please provide any resources to learn more about this?
Can we change the appearance of warning messages in c.Flash() and customize it sothat it should automatically disappear after some time?
Yes, you can modify the template partial for Flash messages in the templates/ directory. The default Buffalo setup is to use Bootstrap v3. So you can add to what is there, with some Javascript to trigger auto-remove after a timeout. Or replace Bootstrap entirely with another library or custom code that does something like that. Just to be clear: there is nothing in Buffalo or Bootstrap (that I know of) to make that work, e.g. just adding a class tag or something. But you should be able to add that functionality with a small amount of effort.
That's great, thanks
This is an excellent tutorial and very helpful for understand for beginners. However, the github repo u have mentioned here is not an updated one with the code u're showing in the video. So could you please update your github repo with updated code, bcs in this video you are not showing the getUserInfo function which returns the User and cannot find a way of doing that since i'm just a beginner to buffalo framework.
Hi, thanks for leaving that message. You are right: the code will not work with the latest Buffalo release, which uses the go:embed directive. I'm starting to update the code repo to fix that. You can try 'part-1' now, as it's updated. Let me know if you have other issues. Also feel free to create an Issue on the Github repo and I can follow up there too. Thanks for trying the lessons.
@@bwagner_dev Thank you very much for your kindness!! and wishing you a prosperous new year! All parts are clear in the part 1 except the data taking from an API and other handling part. Could you please update that too. (I'm talking about the method regarding obtain data as a json from an API )
@@chathuradilshan7650 I appreciate the kind words. Sorry for the confusion. I didn't show the API request in the video only to simplify the example. That function could be anything: get user data from a database, or a file, or an API. The actual code is in the repo here: github.com/briwagner/learn-buffalo/blob/part-1/actions/home.go . You can run that in the project, or copy it to another project. It's pretty standard Go method for getting data from an HTTP request.
@@bwagner_dev I was waiting for your reply and thank you very much!
Greate tutorial!
I'm new to web dev, but this ecosystem/framework looks helpful for quickly putting together a webpage with golang backend. I'm confused where your Eve and Charles data came from, as I don't see any point in the video you adding any database or any requests made that signify this data being available?
Woops this was meant for video 1
@@softkittycara1081 hey thanks for the question. You are right. There is no local database in the first video. I did that to simplify the introduction. The data for those users comes from an external source, an HTTP request to the site reqres.in/. The code for fetching that data is in the repo, but I didn't show it in the video because it's not specific to the Buffalo parts.
That makes sense, thanks again for the quick response!
It’s a good one, although in the name of consistency, I would have preferred a pointer to UserAddress as well. It might be a little confusing to newcomers to Go and pointers, why you get to refer to the address as a value, but to the user as a pointer.
This is an excellent video and very helpful. At first, with the very brief into I didn't know what to expect, but you got down to the details quickly and gave me the content I was looking for. Thank you for going to all the effort of making and publishing this.
Hey Mick, thanks for the kind words. Great to hear that it's been useful!
awesome
Thanks. Lemme know if there's anything else that would be helpful to demonstrate or learn about.
4:36 yes, I believe you can back them up to another drive. You dont wanna lose any project.
Good stuff! Very helpful. Is it possible to make those endpoints API's instead? Including all the frontend stuff that comes with Buffalo?
Thanks! You mean can the endpoints return JSON, XML, etc., and not HTML? Yes, you can check the content-type of the request and return HTML or JSON. There is a built-in for that, as well, using r.Auto(). More here gobuffalo.io/documentation/frontend-layer/rendering/
@@bwagner_dev awesome, I will look into that. Appreciate the help!!
Hi Brain, Thank you for awesome tutorials on Buffalo and Golang. It's very helpful video for beginners. I'm requesting you please upload videos on testify framework. Buffalo + Golang + testify.
Hi, thanks for the comment. I can try to look at a video on Testify and Buffalo. What sort of test routines would you like to learn about?
@@bwagner_dev Thank you for your reply. unit testing and integration testing.
I still never found a way ro get this to work with Amplitude
this is actually awesome resource to build something in Go, highly underrated one. Kudos man
Thanks for the tutorial, I found it really interesting and informative.
Audio fixed, thanks for the re-upload !
Audio still seems off (at least when on Android RUclips app)
Hey Rodrigo, thanks for pointing out. I do hear the issue on Android. It seems to force the stereo into mono and basically cancel out the signal. I re-uploaded the videos in the playlist and it works now on my Android tablet.
so cool lessons! Simple and clear
Thanks!
Hey, why is sound of the video distorted? I can't hear your voice.
It is working on my desktop machine, only on my Android phone I can't hear audio. Great tutorials, I really like your style of explaining.
@@keza5078 Thanks, glad you find it useful. I will take a look at the audio. Maybe something is going on with stereo audio split or something, when it is converted to mp4.
@@keza5078 I can confirm I have the same issue, not ok on android tablet (even when using web interface instead of youtube app), fine on desktop.
Brian, muito legal a aula. Obrigado pelo conteúdo. Eu estava procurando uma forma bem rápida de fazer autenticação aqui e você ajudou bastante com o vídeo.
Great stuff thanks
font name you use in vs code ?
Hey Danh. That's the Dark (visual studio) theme.
Can you say more about If I want don't like ORM like Pop, and use standard database/sql or pgx what would I do? thanks 😊.
Hello, thanks for the suggestion. I am planning to cover something like that in a future video. Basically you need to create a database connection as a global variable, or package-level var, and then use that. Pretty much all of the changes happen in your models package, where you would manually perform operations to query, save, update, etc.
I've been enjoying this series a lot!
Thanks a lot for this Buffalo playlist ! Very good job 👍
Glad you like it!
why this pedal not working on fl studio when i used guitar rig 5?
I'm not familiar with FL studio. Most programs allow you to enable or disable midi controllers or USB devices. Is there a way to do that?
Thank u sir, this is really gonna help me.
My goal is to be able to switch between 2 of the presets with a pedal. I am new to guitar rig so for now I am using the presets just to get used to using it. So for example a song that has a clean-ish intro but then kicks into heavy metal tone, I would use say, Clean Cave then switch to and fro between Big Monster. I am having trouble setting this up. I dont have a pedal so my thought was if I could get the space bar of a keyboard to be the pedal switch, I could for now, put an old usb keyboard on the floor and hit space easily with my foot. could this be done do you think?
Something like that might work, for sure! The software will map keyboard or MIDI channels to any of the main controls. So if you can get any MIDI device and plug it in, it will work. Looks like folks have made DIY foot controllers www.instructables.com/Arduino-Midi-Foot-Controller-for-Ableton-Live/. Or pick up a used midi keyboard with pads, or a pad controller ... and it'll work.
@@bwagner_dev thanks for the reply and advice, much appreciated
Can i use gt 1 as audio interface with guitar rig 5? I mean can i replace focusrite audio interface with gt1?
That is possible, but it'll depend on the input source. I don't think I would try to use a microphone, for example. You may get better quality signal out of the digital convertor in the Focusrite for that. But for line input, I think it would be good.
Tank you.Great Job.
loop menu on my guitar rig5 is missing, and can not drag from menu too...please help
How many languages can Staffpad write lyrics?
Any idea where is the loop Machine in Guitar Rig 6?
I haven't touched GR6. Looking at the manual online, looks like they redesigned a lot of it -- all of it? It mentions Envelope has some looping ability. And the Traktor components do some beat slicing, which I'm not familiar with.
Can you make a video where you talk what you did because its difficult to follow what you are doing without hearing your steps.
I wish i could buy that hardware i have to make do with keyboard binds
no audio?
Is there any way to do this without the RK3? I am looking to integrate guitar and vocals into maschine. Even if it was done in a different way. I’ve heard of people layering with samples of guitar and vocal parts and building that way (kind of doing verse and chorus-sized samples this way). If anyone has any info it would be greatly appreciated. Have had the MK3 for a while now and haven’t been able to put as much ‘hands on time’ in on it yet. I’m mainly looking to use the maschine along with a daw to create ideas/ live jam and even create whole songs and projects from start to finish using instruments (mainly guitar and bass) and mics for vocal parts. I know this probably sounds like a dumb question, but It’s hard to word it right to search it on google and get an answer to my specific question without actually asking someone who knows what they’re talking about. And the seller (guitar center) was no help when I had these questions for him back when I bought the MK3 about 4 months ago.
Works in ipad? :O
Wow, it seems really slow going. Is it worth the trouble?
Hey Jim. It moves much faster when you get used to it. Depends on your style and needs. I've seen apps using midi keyboard entry that are great. But never worked for me!
Can you use Pedal after you put the live effects on it and connect it to the amplifier and use it with the same effects you set it without connecting to your computer?
Hi. The rig kontrol pedals require a computer. The sounds are in the computer software, not embedded in the pedal board.
So are you saying that everything that is connected to the pedal and is not connected to the computer is not worth it? For example, can't I use the Pedal for a live show?
@@user-kn6xq3fw8r You can use the pedal live if you have for example a laptop with you on stage
Is it possible to make custom frames/border around pictures ? Something like in comic books ?
Does it work on iPad?
Windows 10 only
Brian, thanks bro... .... Much Appreciated
All you really need is a device that can talk midi, even make one off a keyboard. There are used rig kontrol 3 and 4. If you go for berhing fcb1010, get the uno chip or eurakaprom chip, its all the worlds different. Its easy to install. But you can even use both. I cant understand why Bias fx does not have a looper. I think guitar rig should put down the prices on theyr software because they really begin to lack behind all other software sound vice, but its still usable. Thanks for the video
VERY GOOD
Hey, how did you set up that "Bass sounding" guitar tone?
theres a few premade presets for bass tones on guitar rig that drop a regular 6 string tuning down to bass tuning
I haven't the pedal board^^ How can i use the loop player with my keyboard?
Right click the green button on the looper thing go click learn press any key for me its space
Yes
Hei,i got 1,but i use usb keyboard pc for footswitch on my guitar rig..ruclips.net/video/_mALqelMd8c/видео.html