Skip to content
项目

关于

theWiseDev|用于挤压页的 API,可将用户注册到邮件列表并向他们发送奖励。项目使用 Node.js 和 TypeScript,采用整洁架构编写,可作为使用 Node.js 和 TypeScript 实现整洁架构的参考。

效率与自动化

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

theWiseDev | API for a squeze page to register users on a mailing list and to email them a bonus (written in Node.js and TypeScript in a Clean Architecture)

This is an API used in the backend of the landing page of theWiseDev platform (http://www.thewisedev.com.br).

It is a basic squeeze page where the user can be registered on the mailing list and receive an e-mail with a bonus.

The API was developed using concepts from Clean Architecture, Domain-Driven Design, Test-Driven Development, Continuos Refactoring, and Atomic Commits.

To run this project you will need to create a .env file at the root of your project with values for the following environment variables:

  • EMAIL_HOST
  • EMAIL_PORT
  • EMAIL_USERNAME
  • EMAIL_PASSWORD
  • MONGO_URL
  • PORT

The EMAIL_* variables are used to send the e-mail to the registered user; MONGO_URL is where your MongoDB is located (you can also create other implementations for the UserRepository for other specific databases if you like; the use cases were developed independent from specific database implementations); and PORT is the port where your API will run.

We believe this project can be used as a reference implementation of the Clean Architecture with Node.js and TypeScript.

Copyright © 2020 theWiseDev

探索相关项目

加载中…