Git Product home page Git Product logo

nodejs-training's Introduction

Dev&Talent

The objective of this exercise is to consolidate knowledge about Node, Express, the preparation of a development environment similar to the one used in J&T and delve into important areas when working with APIs. At the end you will have a fully functional App with a CRUD API, database, auth, cool frontend to manage the information, etc.

Development

To run the project first of all we need to build an image and run it inside a container. To do this go to the project directory and run the following commands

docker build . -t nodejs-training

docker run -d -v $(pwd)/src:/usr/local/jtservice/src/ nodejs-training

With the -v flag we can edit files in our /src and they will be hot reloaded inside the container.

nodejs-training's People

Contributors

ricky-jt avatar rjrodriguezalvarez97 avatar

Watchers

 avatar

Forkers

silviavenegas

nodejs-training's Issues

Add basic routes

We should add the following basic routes to our API:

  1. / which will return a text message, for example “API under construction”.
  2. /json should return a json with the following information
{
	"name": "edgar",
	"occupation": "developer"
}

c. /query should return a json based on the parameters passed to the url. Same result as above.

/query?name=edgar&occupation=gardener

{
	"name": "edgar",
	"occupation": "gardener"
}

d. /profile should redirect to /json

Initial Setup

Add the initial configuration for the project:

  • Install Typescript
  • Install Linter
  • Dockerize the service

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.