Giter Site home page Giter Site logo

waldheidemarie / tutorial-express-mongodb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kammradt/tutorial-express-mongodb

1.0 1.0 0.0 282 KB

:leaves: A really friendly tutorial on creating an API with Express and MongoDB :leaves:

JavaScript 100.00%

tutorial-express-mongodb's Introduction

Welcome to our Express & MongoDB friendly tutorial!

Summary
Who?
What? What will we build?
Why? What is our objective?
How? Are are the tools that we will use?
Let's start

Result ✨

We won!

codigofalado/desafio333#46

Who?

Hi there! My name is Vinícius Kammradt, I`ve been playing with technology since 2016. I really enjoy creating new stuff and also love to spread any knowledge that I have with others.
Now, with help from Gabriela de Almeida Riul, an Electrical Engineering student and also volunteear at PET EEL, who is also interested in development, we will try to beat a challenge proposed by Código Falado.

What? What will we build?

The main idea of this project is to create a complete website to this challenge.

O cliente (Leitura Orgânica) precisa de uma Landing Page para possibilitar que o usuário calcule sua velocidade de leitura.

Our technical structure:

Our Vue.js website will be bassically a landing page that will use our API to get some information and also be able to manipulate it. We also need the API to be able to send e-mails, so we will use Sendgrid to do it.

Why? What is our objective?

Our main objective is learn. After that, we want to be able to understand how a real website and API work, and after that, create our solution based on what we learned.

How? What are the tools that we will use?

We will use Javascript as our main programming language.
So, to create our front-end we will use Vue.js. Primarily because it is an easy framework to start with and also really powerfull. To make stuff look better we will use Vuetify, a library that has styled components.
We will also need some server-side processing to access the Database and send emails, so we will use Express.js to do that. This is a really easy to use framework that allows us to create endpoints and also trigger all other stuff that we need to do in the server.

Let's start

The tutorial was divided into some sections. You can verify everything in the table below:

💬 Introduction
What is a Database?
What is an API?
HTTP Verbs
Installing MongoDB on Ubuntu
Installing a client for Mongo
🗃️ Creating the Project and interacting with Database
Creating a project
Learning how to perform CRUD with Mongoose
What is CRUD?
Creating the basic file
Adding rules to Text model
Reading data
Updating data
Delete data
♻️ Creating the CRUD
Creating the basic API file
Creating routes
Creating a GET route
Organizing our files and project
Creating a real GET route
Refactoring the code
Route to CREATE a Text
Route to GET one Text
Route to UPDATE a Text
Route to DELETE a Text
Route to GET a random Text
📬 Sending emails using SendGrid
Introduction about SendGrid
Adding SendGrid library to the project
Creating custom email templates
Sending custom email templates
🎨 Refactoring and Best practices
Splitting routes
Using environment variables
🔒 Security
Introduction about security
Authentication and Authorization
Securely encrypting data

tutorial-express-mongodb's People

Contributors

kammradt avatar dependabot[bot] avatar

Stargazers

Thalukanyo  avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.