Example api, in Portuguese, to show very basic fundamentals of an express server.

Overview

Servidor de texto

Aqui é um exemplo simples de como usar o express para servir um valor da memória do servidor para o front como resposta a cada requisição. Cada vez que recebe uma requisição, o back adiciona um "i" à palavra "oi".

Como rodar o servidor

Clone o repositório:

git clone https://github.com/jpgsaraceni/simple-api.git

Na sua máquina (não virtual), dentro da pasta backend, instale as dependências:

npm install

Inicialize o servidor:

npm start

Você pode também fazer tudo isso em um comando:

git clone https://github.com/jpgsaraceni/simple-api.git && cd simple-api/backend && npm install && npm start

Como rodar o front para consumir a API

Abra o arquivo index.html (que está na pasta frontend) com o seu navegador.

You might also like...

A basic example of a GraphQL API built with NestJS, Prisma and TypeScript

A progressive Node.js framework for building efficient and scalable server-side applications. Description Nest framework TypeScript starter repository

Dec 18, 2022

A basic starter for an express.js API with Typescript

Express API Starter with Typescript How to use this template: npx create-express-api --typescript --directory my-api-name Includes API Server utilitie

Dec 28, 2022

Chrome Extensions are something which we use very frequently in our day-to-day life for example Grammarly

Chrome-Extension Chrome Extensions are something which we use very frequently in our day-to-day life for example Grammarly, In this project similarly,

Dec 14, 2022

Monolithic repo for api server, image server, web server

Onsecondary Market Deployed at https://market.onsecondary.com Monolithic repo for api server, image server, web server TODO -use a script to cull expi

Jan 11, 2022

A Node.js REST API example built with Express and Typescript that can be used as template for creation of new servers.

api-example-firebase-nodejs A Node.js REST API example built with Express and Typescript that can be used as template for creation of new servers. The

Nov 25, 2022

BASIC is a web application contains basic applications related to studies, love, health, weather, productivity. This project aim to simply the user's life in anyway.

BASIC is a web application contains basic applications related to studies, love, health, weather, productivity. This project aim to simply the user's life in anyway.

BASIC is a web application contains basic applications related to studies, love, health, weather, productivity. This project aim to simply the user's life in anyway. Supported by all operating system, need an internet connection for working properly.

Dec 19, 2021

This project will be a basic website that allows users to add/remove books from a list. The main objective is to understand how to use JavaScript objects and arrays and dynamically modify the DOM and add basic events.

Awesome-books Awesome Books This project will be a basic website that allows users to add/remove books from a list. This project is part of the Microv

Oct 3, 2022

Basic website that allows users to add/remove books from a list. Achieved using JavaScript objects and arrays, dynamically modifying the DOM and adding basic events.

Awesome Books Basic website that allows users to add/remove books from a list. Achieved using JavaScript objects and arrays, dynamically modifying the

Dec 20, 2022

This repository contains a basic example on how to set up and run test automation jobs with CircleCI and report results to Testmo.

CircleCI test automation example This repository contains a basic example on how to set up and run test automation jobs with CircleCI and report resul

Dec 23, 2021
Owner
João Saraceni
Lina's dad | Aspirant Web Developer at Alpha EdTech | Production Engineer | English, Math and Physics Teacher
João Saraceni
Basic Express methood solution with mongodb and Client & Server site code example

Express with MongoDB Tutorial (Basic) React Tutorial React Inastallation React Fundamental Concepts React Advanced concepts let start Express Starter

Md. Nazmul Islam 28 Oct 28, 2022
Meme Generator - Project developed in the Trybe fundamentals module

Meme Generator Projeto desenvolvido no módulo de fundamentos Trybe Habilidades desenvolvidas Manipular o DOM com javaScript Requisitos Obrigatórios (t

Bel Albuquerque 3 Jul 22, 2022
A "Basic-to-Lisp" compiler. But Basic is not real Basic, and Lisp is not real Lisp.

Basic2Lisp A "Basic-to-Lisp" compiler. But Basic is not real Basic, and Lisp is not real Lisp. Syntax Print-Sth Put some-value to standard output. PRI

Hana Yabuki 5 Jul 10, 2022
TVMAZE API-based webapp, receives TV show episodes with all data about that TV show.

TVMAZE API-based webapp, receives TV show episodes with all data about that TV show. The Webapp has two interfaces: A home page, showing a list of Tv show episodes you can like. And a popup window with more data about the TV show that you can comment on.

Yasin Warsame 4 Aug 9, 2022
Learn Basic of Node Express Server and Git & Github by creating Pull Request in this repository.

hacktoberfest-express-server-2022 Learn Basic of Node Express Server and Git & Github by creating Pull Request in this repository. Special Note For Ev

NetScape-Web 3 Oct 6, 2022
An exercise in building a very minimal (and very stupid) in-memory SQL-like database for educational purposes.

Stupid Database This is an exercise in building a very minimal (and very stupid) in-memory SQL-like database for educational purposes. None of this co

Fabio Akita 196 Dec 20, 2022
A Very Good Documentation Site created by the Very Good Ventures Team 🦄

Very Good Docs Site Developed with ?? by Very Good Ventures ?? A Very Good Docs Site created by the Very Good Ventures Team. Generated by the Very Goo

Very Good Open Source 8 Nov 2, 2022
This is a simple Image popup Jquery plugin. With a very simple configuration, you can show a popup on your webpage. By the way, this plugin works after page load.

Jquery-SingleImagePopup This is a simple Image popup Jquery plugin. With a very simple configuration, you can show a popup on your webpage. By the way

Rajan Karmaker 1 Aug 22, 2022
Show More Less - jQuery - Very useful tiny tool

myOwnLineShowMoreLess Show More Less - jQuery - Very useful tiny tool. Demo Getting Started This is simple plugin developed using jQuery. Prerequisite

Siva 1 Dec 29, 2020
It is a very basic implementation of how blockchain works, mainly how the bitcoin blockchain.

How to run this program npm install node core/blockchain.js What is this It is a very basic implementation of how blockchain works, mainly how the bit

Anish Jain 12 May 9, 2022