GithubHelp home page GithubHelp logo

gbshadow / aulao-tajs-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erickwendel/aulao-tajs-template

0.0 0.0 0.0 10 KB

Template do Aulão sobre Testes Automatizados em JavaScript

Shell 22.56% JavaScript 77.44%

aulao-tajs-template's Introduction

Aulão Testes Automatizados com JavaScript Like a Pro - Template

Olá, seja muito bem vindo(a) esse é o template inicial que vamos trabalhar no Aulão.

Você precisará usar o Node.js na versão 20 (ou superior) para executar os exemplos

node -v
# v20.5.0

Rodando

Restaure as dependencias e execute o projeto:

npm ci --silent
npm start

Seu programa estará rodando em http://localhost:3000

Depois que a API estiver rodando você pode executar o script que vai disparar requests, obter o token e exibir a resposta da API.

Para isso execute

./run-api-requests.sh

A resposta deve parecer-se com:

Token capturado: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiZXJpY2t3ZW5kZWwiLCJtZXNzYWdlIjoiaGV5IGR1dXVkZSEiLCJpYXQiOjE2OTE2OTM4MjF9.VmPc9yY4tTXYQaILbY6JXK8IrmKKK0Z4hveVgRUIV9Y

Resposta da rota privada: {"result":"Hey welcome!"}

Valeu

  • Considere me seguir nas redes sociais e deixar um star nesse projeto!
  • Valeu!

aulao-tajs-template's People

Contributors

erickwendel 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.