Уроки React. Урок 14.

Всем привет! Продолжаем работу над нашим приложением. Мы с Вами уже умеем делать простые обращения к серверу и в 80% случаев этих знаний будет достаточно для выполнения типовых задач. Но конечно же, как работать с более сложными вещами мы тоже разберемся. Но прежде чем начать с этим разбираться спешу Вас предупредить, что middleware далеко не всегда надо писать самостоятельно. Т.r. это такие часто используемые (переиспользуемые) элементы, которые уже были написаны до Вас. Рекомендуем ознакомиться с данным ресурсом, здесь можно найти огромное количество разнообразных middlewares и т.д. К примеру вот готовый logger. Мы писали с Вами logger чтобы попрактиковаться, но вот пример прекрасного готового решения.

Category: Programming
0

Уроки React. Урок 13. Часть 2.

"Уважаемы читатели! Не забудьте про первую часть этой статьи, новичкам стоит начать с Урока 1." Теперь давайте это вызовем в containers/Articles.js , добавив такую запись вызывая action creater:

Category: Programming
0

Interview with Stepan

Hello! My name is Stepan and I’m a professional full-stack web developer. For over 4 years I’ve been doing web developing working with customers from the US, Canada, Europe and Australia.

Category: Interview
0

Outdated MVP

We are looking forward to meeting you on our website soshace.com

Category: Comics
0

22. Long Polling Chat, POST Reading. Pt 2.

So, whatever we type, we see the same message to be sent. Let us fix it. We send messages with a POST method. In order to read this method from req, we need to work with it as with a stream. So, let us look at the following scheme that describes a request’s lifecycle, in particular of the req and res objects.

Category: Programming
0

22. Long Polling Chat, POST Reading. Pt 1.

Hey all! The aim of our lesson for today is to learn how to create a Node.js chat. Our first chat will be rather simple.

Category: Programming
0

21. Node.js Lessons. Writable Response Stream (res), Pipe Method. Pt.2

Upon the file ending you will see the end event, in the handler of which we will end our response by calling res.end. Thus, the outgoing connection will be closed for the file has been completely sent. The resulting code is quite versatile:

Category: Programming
0

21. Node.js Lessons. Writable Response Stream (res), Pipe Method. Pt.1

Our next step will be using the streams to work with network connections. And we will start from delivering files to a visitor. As you may remember, we’ve already had a task like this: if a visitor requires the following url, you will give him the file. Let us create a file pipe.js with the following code (for your convenience, you can download code' lesson from the repository because we'll need an HTML file from there):

Category: Programming
0

Interview with “Soshace” team

We made short video interviews with our developers. Hope you will be glad to meet with our team. Enjoy watching!

Category: Interview
0

20. Node.js Lessons. Data Streams in Node.JS, fs.ReadStream

Hey all! Our topic for today is Data Streams In Node.js. We will try to learn all the aspects in details for the reason it turns out that on the one hand, common browser JavaScript development lack streams. And on the other hand, knowing and understanding stream principles is necessary for seamless server development because a stream is a versatile way of work with data sources universally used.

Category: Programming
0

Sign in

Forgot password?

Or use a social network account

 

By Signing In \ Signing Up, you agree to our privacy policy

Password recovery

You can also try to

Or use a social network account

 

By Signing In \ Signing Up, you agree to our privacy policy