1 of 31

SparkHacks 2026

Back to the Backend

2 of 31

Objectives

Intro to backend devevlopment

Understand the importance of building backends

Exposure to Node.js + MongoDB

Walkthrough of a real implementation of a simple backend you can use for your projects

3 of 31

What’s a backend?

  • A backend to a web application is server-side code

  • Simply put, this is code that is not ran on the browser–users do not run this code on their side

4 of 31

What’s a database?

Sql

NoSql

  • A digital repository (place to store things) for data

  • Tons of different types of databases

  • One key differentiation for web-developers is SQL vs NoSQL DBs

Tables with rows and columns

Collections and documents

Data is often closely related to each other

More flexible structure for data

Uses a language called SQL

JSON-like objects, very easy to use with backend languages like JavaScript

5 of 31

Why MongoDB?

  • Local vs cloud

  • Scalability

  • Very common in industry

  • Hackathon convenience—easy to use

6 of 31

GitHub Link

7 of 31

Server set up

Node.js: runtime environment that lets developers run code outside of the web browser

Express: framework that simplifies having to write some of the code to handle HTTP requests

Mongoose: a ODM library that makes it really simple to connect to MongoDB

Cors: a way for browsers to protect themselves. We add a header in our server code to safely connect frontend and backend.

8 of 31

Let’s take a look at the code

9 of 31

Models and Schema

Schema

Models

A template that outlines how the data document should be structured

Models are programming interfaces that we can use to interact with the DB

10 of 31

HTTP Requests

GET

Read Data

POST

Create Data

PUT

Update Data

DELETE

Delete Data

Communication method between the frontend and backend

11 of 31

CRUD Operations

  • CRUD database operations are used to directly change the database.

  • Since we’re using Mongoose, we get to use predefined functions to do these operations.

Mongoose Docs

12 of 31

Feedback Link!

We really appreciate your feedback! We strive to make SparkHacks better each year, please fill out this form to let us know what you liked or not! Thank you! :)

13 of 31

Before you go!

Scan the QR code to learn about their platform:

Aedify.ai will be at SparkHacks! Join the workshop led by CTO Zhuo Chen to learn more about scalable deployment of web applications!

14 of 31

Instructions for use

For more information about editing slides, please read our FAQs or visit Slidesgo School:

https://slidesgo.com/faqs and https://slidesgo.com/slidesgo-school

If you have a free account, in order to use this template, you must credit Slidesgo by keeping the Thanks slide. Please refer to the next slide to read the instructions for premium users.

As a Free user, you are allowed to:

- Modify this template.

- Use it for both personal and commercial projects.

You are not allowed to:

- Sublicense, sell or rent any of Slidesgo Content (or a modified version of Slidesgo Content).

- Distribute Slidesgo Content unless it has been expressly authorized by Slidesgo.

- Include Slidesgo Content in an online or offline database or file.

- Offer Slidesgo templates (or modified versions of Slidesgo templates) for download.

- Acquire the copyright of Slidesgo Content.

15 of 31

Instructions for use (premium users)

As a Premium user, you can use this template without attributing Slidesgo or keeping the "Thanks" slide.

You are allowed to:

  • Modify this template.
  • Use it for both personal and commercial purposes.
  • Hide or delete the “Thanks” slide and the mention to Slidesgo in the credits.
  • Share this template in an editable format with people who are not part of your team.

You are not allowed to:

  • Sublicense, sell or rent this Slidesgo Template (or a modified version of this Slidesgo Template).
  • Distribute this Slidesgo Template (or a modified version of this Slidesgo Template) or include it in a database or in any other product or service that offers downloadable images, icons or presentations that may be subject to distribution or resale.
  • Use any of the elements that are part of this Slidesgo Template in an isolated and separated way from this Template.
  • Register any of the elements that are part of this template as a trademark or logo, or register it as a work in an intellectual property registry or similar.

For more information about editing slides, please read our FAQs or visit Slidesgo School:

https://slidesgo.com/faqs and https://slidesgo.com/slidesgo-school

16 of 31

Fonts & colors used

This presentation has been made using the following fonts:

#6f1c43

#ffe290

#ffb243

#b7233f

#80192c

#ffffff

#d9d7d3

#869fb1

#2a2a53

#000d20

17 of 31

Storyset

Create your Story with our illustrated concepts. Choose the style you like the most, edit its colors, pick the background and layers you want to show and bring them to life with the animator panel! It will boost your presentation. Check out how it works.

18 of 31

Use our editable graphic resources...

You can easily resize these resources without losing quality. To change the color, just ungroup the resource and click on the object you want to change. Then, click on the paint bucket and select the color you want. Group the resource again when you’re done. You can also look for more infographics on Slidesgo.

19 of 31

20 of 31

21 of 31

JANUARY

FEBRUARY

MARCH

APRIL

MAY

JUNE

PHASE 1

PHASE 2

Task 1

Task 2

Task 1

Task 2

JANUARY

FEBRUARY

MARCH

APRIL

PHASE 1

Task 1

Task 2

22 of 31

23 of 31

24 of 31

...and our sets of editable icons

You can resize these icons without losing quality.

You can change the stroke and fill color; just select the icon and click on the paint bucket/pen.

In Google Slides, you can also use Flaticon’s extension, allowing you to customize and add even more icons.

25 of 31

Educational Icons

Medical Icons

26 of 31

Business Icons

Teamwork Icons

27 of 31

Help & Support Icons

Avatar Icons

28 of 31

Creative Process Icons

Performing Arts Icons

29 of 31

Nature Icons

30 of 31

SEO & Marketing Icons

31 of 31