Hackathon: EU Africa The Post Crisis Journey

Before Christmas, I participated in another Hackathon. I was not thinking about winning, I just wanted to make it to the top 20. Unfortunately my team did not scale through.

For the first time, I did not beat myself up or try to think about what I could have done right. One thing I remember clearly was sitting alone and facing my laptop and a voice just echoed Maya Angelou’s quote to me:-

You may encounter many defeats, but you must not be defeated.

I felt relieved and I focused on the next step. I am attempting two more coding challenges.

I am trying to raise funding for my tech startup (Keno.Tech). I have outlined ways I can make money from the startup but I need funds to be able to purchase the necessary items.

Our Project

The idea owner/team leader wanted to create a platform for small scale miners to sell their gemstones to potential (international) buyers. I joined the team because I really liked the idea plus it was different from every other idea submitted. I wanted to explore something different.

I was the only dev on the team so I had to work on the UI and the backend. I could not build all the features but I was able to implement gemstone entry (by admins and sellers), update shop details, manage profile, user application (buyers and sellers), etc.

Lessons

I wished I had networked more. I was so focused on building the project that I did not get time to interact with other people. In my defense, there was no time to spare :). We did share our idea with panelist, Mr. Eric Kaigama who gave us valuable feedback.

Uhmmmm… what else. Yeah, I learned about small scale miners and how difficult it is for them to sell their gems to buyers. And lastly, I understand how to pitch now. Although I have to work on myself ’cause the thought of presenting or public speaking scares me.

Good news

On the 30th of December, I received the prize (R7,500) money from HackUrCulture. It’s more than enough to get me started on the kits I am working on.

Sarai: Project Update Two

I had a couple of tasks to complete since the last Sarai Update. To be honest I have not done much.

Yesterday I spent the entire day making updates to the site content (about, font size, excerpt count and icons). Just minor changes but the site looks way better than it did before (…I think).

This project is huge and I cannot wait to see how far it will go and the impact we will make. I’ll add another directory for ‘blood banks’.

Right now I am hoping I win something from HackUrCulture Hackathon so I can extend my VPS hosting (expiring in December) and get some equipment for our video shoots.

Heading back to the 100 days challenge. I owe two days updates 🙂

Photo by Karolina Grabowska from Pexels

Resource: Uploading Laravel Project to Heroku

I decided to deploy my prototype for the Hackurculture hackathon to Heroku. Found a useful video that helped me and I thought I should share.

Trouble shooting

Creating Heroku App With a name

In his tutorial he did not specify a name for the app so one was generated randomly. To create your app with your desired name:

heroko create yourAppName

To change the random name generated:

heroku apps:rename newAppName

Source: https://devcenter.heroku.com/articles/renaming-apps#updating-git-remotes

Error: Refspec master does not match any

error: src refspec master does not match any.

error: failed to push some refs to ‘https://git.heroku.com/izikoapp.git’

When you use this command: git commit -m ‘initial release’, you might have seen this:

*** Please tell me who you are.

Run

  git config –global user.email “you@example.com”

  git config –global user.name “Your Name”

to set your account’s default identity.

Omit –global to set the identity only in this repository.

fatal: unable to auto-detect email address (got ‘michelleenakeno@mac.(none)’)

Set up your email and name. In my case I did the set up for the current project directory (omit –global)

git config user.email "myemail@email.com"

git config user.name "My Name"

Run the command again:

git commit -m "initial release"

Everything should be working fine now.

Laravel 8 Auth

Install Laravel UI package

composer require laravel/ui

Generate auth scaffolding

php artisan ui vue --auth

Install npm dependencies

npm install

Compile assets

npm run dev

Upgrade PHP version

#update brew
brew update

#this command will install php7.4 and other dependencies
brew install php@7.4

#or you can use this command instead
brew upgrade php

When I use the command ‘php -v’, I still get the ‘php7.2‘. Here’s how to switch to the newer version.

Find the .bash_profile file. In my case the path: /Users/michelleenakeno/.bash_profile

Edit with ‘TextEdit’ and add this:

export PATH="/usr/local/opt/php@7.4/bin:$PATH"

Save and close. Check your current php version and you should see 7.4

php --v

NOTE: if you are not sure about where your php path is, you can use the old path location as a hint. Use this command:

which php

If you check your current php version and the changes haven’t reflected, close your terminal and open it again or use this command:

source ~/.bash_profile reset

NOTE: you can edit the .bash_profile directly from the command line by using this command:

vim .bash_profile

Upgrade/Update composer

Update composer in the command line. CD into the directory where you installed composer.

#find composer path with this command
composer config --list --global

#look for this line -> [home] /Path/To/.composer

#change directory and update
cd .composer
composer update

Laravel Global Variable

Use the same technique for adding ‘php7.4 path to .bash_profile.

export PATH="~/.composer/vendor/bin:$PATH"

Packagist could not be fully loaded

Error: http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date

Use this command:

composer config -g repo.packagist composer https://packagist.org
composer config -g github-protocols https ssh

Source: https://laracasts.com/discuss/channels/laravel/why-showing-this-error