Push system of message (e-mail, SMS, websocket, app) based on nest and redis
system function
summary
In order to avoid redundant code, the function of message push is taken as an independent platform. Each subsystem generates tasks through common RESTful interface or message (kafka).Push function can be email, SMS, WebSocket or App. Tasks can be executed immediately or regularly. In order to meet the function of multip ...
Posted by rarebit on Sun, 21 Jun 2020 01:35:41 -0700
Cannot read property 'value' of undefined
Error in v-on handler: "TypeError: Cannot read property 'value' of undefined"
Errors are reported as follows:The above error occurred while running the Vue project because its container was initialized before it was generated.
First, check whether there are the following operations
//The original operation of fetching dom
document.getElementBy ...
Posted by almystersv on Tue, 14 Apr 2020 07:11:20 -0700
Vue's Axios Cross-domain Problem Solutions
// GET requests in axios
axios.get('/user', {
params: {
ID: '001'
}
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
// POST requests in axios
axios.post('/user', {
firstName: '1',
lastName: '2'
})
.then(function (response) {
console.log( ...
Posted by elle_girl on Tue, 10 Mar 2020 16:14:44 -0700
Electron 7.1.10 installation failed
I have a problem recently. That is, Mac OS can't read and write when it is plugged into NTFS format mobile hard disk, and then it finds that some file system prompts are occupied by Mac OS and can't be opened. Every time I need to execute the command to mount it manually... Then I can't accept the lazy cancer, so I developed a small tool with ...
Posted by RandomEngy on Sun, 26 Jan 2020 08:59:06 -0800
node + express learning one (project construction)
Make sure node and express are installed before you start
1. Initialization project
express ***(***Your project name)
cd ***
npm install(Download dependency)
Startup project: Run Command: node. / bin/www, port 3001 is my own change, in / bin/www (it is recommended to use WebStorm to run, because we need to use it to write code)
2. Coding
Open ...
Posted by UmneyDurak on Sun, 15 Dec 2019 07:01:48 -0800
NestJS integrated graphql grpc distributed practice
In order to learn the knowledge of nestjs graphql grpc microservice, the specific syntax of grpc and graphql is analyzed in detail
1 create project
npm i -g @nestjs/cli
nest new project-name
2 add graphql
Create graphql-config.service.ts file for graphql configuration and filter writing logic
@Injectable()
export class GraphQLConfigService impl ...
Posted by Bac on Sun, 01 Dec 2019 05:51:29 -0800
Using Express to develop novel API service 1.0
Using Express to develop novel API service 1.0 (2)
Online access address https://api.langpz.com/
Before the completion of the home page and search interface, now start to write the rest of the interface.
Access to novel sources
Because the original source of Book Chasing artifact is charged and encrypted, it can only use pirated source, so it i ...
Posted by jaronblake on Fri, 29 Nov 2019 23:01:18 -0800
Recently, it's a hot rewind challenge - ReverseVoice (wechat applet version front and back source code) Ts Node Taro
Project address: https://github.com/smackgg/reversevoice
In fact, the whole project is very simple. It's only a few days after I saw the fire in tremolo and station B until the app finally went online. Since it went online on November 16, there are still a lot of users (mainly the fast apps made at that time are relatively few). Now there are a ...
Posted by DeadDude on Wed, 27 Nov 2019 04:11:29 -0800
[dry goods] introduce four practical skills of developing React application
background
Hooks has been very popular since it was launched. It has changed the way we write React code and helped us write more concise code.
Today's article is not about Hooks. Besides Hooks, there are many practical skills that can help us write concise and clear code.
Today, I've sorted out a few skills, some of which are also my practice ...
Posted by steveh62 on Tue, 26 Nov 2019 01:55:37 -0800
Electronic Vue silent printing 2019 latest solution (including source code)
Project environment
node 10.15.3yarn 1.15.2win10Code completion time: April 18, 2019
Don't talk too much, put the source code first
GitHub
https://github.com/951477037/electron-print
git clone https://github.com/951477037/electron-print.git
//Installation dependency
yarn
//Operation item
yarn run dev
//Packing project
yarn run build
directory ...
Posted by mrwowza on Mon, 25 Nov 2019 10:05:56 -0800