Forum in maintenance, we will back soon 🙂
@dari-dar Hi Friend, first, I am glad that you ran the template.
for the second questions, yes, I will create some more videos and add to the SAAS course showing step by step for beginners how to integrate everything together.
for the first question, can you please tell me where you are lost, why confused?
Step 1: create the API
Step 2: host and test
Step 3:Publish on rapidAPI
Please tell me where you are lost? am here to help
Â
Hello Hassan @admin, Thank you very much for your response. I am actually lost at the last video of the API course where you share your template for the best practice on how to create and organize an api with fastapi.
I started with the Prompt-Engeneer Course, then the api and saas course. Now I want to integrate my Application in your template to upload it on a hoster. But I am confused in your template. Please see the example of what I mean in the screenshot.
For learning purpose I want to take for example your Keyword-Bomber-Tool and I want to integrate it in your api template. after that upload on github and after that upload to a hoster like digital ocean or hureko. So from there, I can take the url I need and use it in my saas and then maybe even publish on rapidapi.
But when I open your template there are many different files and folders and I don't understand how to integrate in this case the Keyword-Bomber-Api with many files and folders in your template. Also for example logging and mongo suddendly you spoke about them in your last video of the api course but not in detail, so it confuses because I don't understand for what they are good for. This is my difficulty. Where and how to integrate the app above in this template and how to cut off for example mongo if not used?
@dari-dar Yeah, I got your point; I will create a video on how to do this step by step.
I mentioned Mongo just for those who want to use it; if you don't know it, there is no need to think about it. It is a database system. and it is not directly related to the course.
@admin Hassan, thank you very much! This is great. I guess it will appear in the api-course? Do you please text when it's out?
I had added to my comment, unfortunately it didn't save the rest of the comment. I had written, that in your api template you have different folders like the models folder and I wanted to ask you please to explain in your video for what this and other folders are good for, to explain please a little bit more in detail why your template is best practice.
Thank you very much!
@dari-dar it helps to break an application into parts using folders. A model folder would normally be for defining the database tables but other things could be a model. It takes a while to understand the big picture of DevOps and programming. @Hasan has given just a brief overview to get you hopefully started with making money.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@ssadvisor yeah exactly, to make is simple for anyone to get started.
@dari-dar Yeah sure, it will be added to the course, and an email will be sent to you 🙂Â
For the template, if you want to go in-depth, then it requires you to go into some programming details. I dont mind, but I think it will be out of the scope of the course, and many will get lost. I will try to explain more. I will see what I can do 🙂
I have problems with heroku. Deployment of the fast-api-template from the course on heroku was fine without problems, but when opening the app i get this:
running on localhost has no problems it is healtyh - only the provided blog/generate-titles does also not work.:
this is frustrating..
Â
I tried to deploy another app where there is a google-search without the template and if functioned. But I had to install gunicorn and change the procfile to make it work. there i could open and run the app. but got this error:
"Problems with selenium? - on localhost it functions, when using heroku, only problems:
Chrome failed to start: exited normally.\n (session not created: DevToolsActivePort file doesn't exist)\n (The process started from chrome location /app/.cache/selenium/chrome/linux64/121.0.6167.85/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.
this morning i got the following email: GitGuardian has detected the following OpenAI API Key exposed within your GitHub account. In fact I got another email from openai where they say that my OpenAI key has been disabled.
In the first Email they reccomend to fix the secret leak with GitGuardian. is it trusthworthy?
Hi Friend, first, when you publish your App to GitHub, you should keep it private. Otherwise, all API keys will be exposed.
The blog title generator is just a test function I created to show you how it appears in the template.
Second, it is normal to get errors. Welcome to the programming world! I face hundreds of errors every week. You are not alone 🙂
anyway. Let's focus on one topic. Hosting the API.
Can you check Heroku logs and share them with us? Maybe it can help us troubleshoot the problem.
Â
Posted by: @adminHi Friend, first, when you publish your App to GitHub, you should keep it private. Otherwise, all API keys will be exposed.
Â
Ouch, a big, big NO NO. Always, ALWAYS put your API keys in an environment file (usually .env) that you import into your program. The environment file needs to be listed in the .gitignore file so that it isn't uploaded to GitHub. Since the GitHub data is a historical repository of the code it is nearly impossible to remove any that mistake and you should invalidate that key to make it not usable.
I'm happy to see GitHub is giving warnings for such events. BTW, storing your key in GitHub is also a violation of the TOS with OpenAI.com.
Â
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@ssadvisor Yeah, you are 100% right.Â
In some cases, you may have a configuration file containing your keys that you want to host online with your app. if there are no collaborators and the repo is private. I dont think there is a way for the keys to be exposed.
But anyway, the best approach is what you mentioned 🙂
@admin but there could always be a situation where you want to have a team help with the code and you don't want everyone to know your API keys.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
hello @admin, hello @ssadvisor,
at the end i was able to create my api on heroku. Does it mean that openai api does not have to be in pyhton code when pushing to github? has the openai api only to be on the saas platform - for example wordpress if i use it to provide my tool?
Now i have another problem. i am still not able to make my app function on my wordpress. I used your html, css and js for the ui to my test-saas. also all your php codes to connect but i have no function. could you please look on it?
i could give you access to my page.
@dari-dar An API call can be used by any programming language as long as the rules of the API can be followed.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack