HackUrCulture – Final Week

It all started from…”Congratulations”.

On the 21st of September 2020, I was selected to participate in the HackUrCulture Hackathon. Before then I had received 2 or 3 rejection emails so you can imagine my joy.

It was not as easy as I thought.

This whole thing feels like a Hollywood movie. When the actor feels defeated and suddenly things change for the better.

Three members dropped out.

I made up my mind to send an email to the organizers telling them I cannot get anyone on my team so here is the link to the prototype and the relevant documentation…I can’t do this.

At one point I did not know why I was working on the prototype. My mind was divided in two:

“Just leave it. why waste your time on something you will never present”

“Finish it. You can do this.”

Nick showed up when I had given up.

We presented on the 24th of October and I could tell the judges were impressed. I am so happy.

Hack Ur Culture
HackUrCulture Header

Regardless of the outcome, we did it. Team Myths delivered.

Thank you to the amazing team behind HackUrCulture. I have learnt so much and I feel blessed to be given this opportunity.

Important lessons: I can do anything, I should be confident in my ideas, I should trust myself, and the vision to design a platform for African artist was never a mistake.

Before I end this, I just want to say trust yourself especially that inner voice. When I had made up my mind to throw in the towel, something said to me, “…don’t worry, Nick will show up and you will present.”

Iziko App for Iziko Museums

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