Preparation is key for a 24 hours hackathon event. You do not want to lose time on setup or tooling. You want to use those precious hours to code and be creative.
In this post, I cover how I prepared for the 2018 Sitecore hackathon.
You need to have fun! This is the most important aspect of a hackathon. If it were not fun, nobody would participate. The topics are made public at 7pm EST. It is the perfect time to crack open a few beers while starting the project in powerful ways.
- You have enough for you and your teammates.
- It is in the fridge at least 12 hours before it starts.
As the Hackathon starts at 7pm for me, it means I cannot get sleep between my work day and the event. After a full work day and a long night of coding, I will need something strong to stay awake.
- Refill the coffee stocks.
- Make sure you have enough filters as well.
Your brain need food to think sharp and code wisely. Prefer homemade meals over fast food.
- Do not waste time cooking during the hackathon.
- Make an additional serving at dinner time the days before the hackathon.
- Microwave when you are hungry.
Nothing is more frustrating than having problems with your tools while you are in a rush.
- Update your tools to the latest version. This includes Visual Studio, its extensions, Visual Studio Code.
- Make sure NuGet, nodejs, and npm are working fine.
This year, the organization team is providing each team a GitHub repository with boilerplate folders, documentation, Visual Studio solution, and instructions about where to place everything. This is really helpful.
- Clone the repository on your local machine.
- Read all the markdown files.
- Take the lead by creating your Visual Studio projects in advance. Even add Unicorn from NuGet and prepare your configuration files if you plan to use it.
This year’s Sitecore version requirement is the bleeding edge 9.0 Update-1 release. It requires a Solr server for xConnect to work. With the help of SIF-less, I installed 3 instances named hackathondev, hackathonstaging, and hackathonprod. I will work in the dev instance, use the staging one to test my Sitecore package, and use the prod one to record my video which will include a clean package installation.
- Ensure you have a Solr instance running. Install it with Jeremy Davis’ script if needed.
- Install a few Sitecore instances using your preferred method.
Sitecore Rocks cannot connect to a Sitecore 9 instance by default. You have to modify the Sitecore web.config to allow the connection. Follow Rob Ahnemann’s solution to make it work.
- Ensure Sitecore Rocks is installed.
- Modify the web.config of your Sitecore instances.
- Add the connections to your Sitecore instances in Sitecore Rocks.
Sitecore Rocks VS Code
Sitecore Rocks VS Code is the little brother of the original Sitecore Rocks extension. It is only for VS Code and was released during Sitecore Symposium 2017. It comes handy when developing with Sitecore JSS. It requires a Sitecore package to be installed in your instances. If you hope JSS will be an entry category for this year’s hackathon like me, I recommend you to install it.
- Install VS Code if not already done. What are you waiting for to use the best code editor out there!
- Install the Sitecore Rocks VS Code extension.
- Install the Sitecore.ContentDelivery.zip package in your Sitecore instances.
- Add the connections to your Sitecore instances.
A good preparation must have a lot of sleep in the days before a hackathon. Now that everything is ready, get as many hours of sleep as possible.
Enjoy your Sitecore hackathon!