Identifier is a backend application that has CRUD users, has middleware for admin where this account can see all users, only one user and only logged-in users can delete their own accounts or update their own data.
This structure was created only to help those who are starting with studies in test driven development, domain driven design, clean architecture and design pattern.
This structure was created only to help those who are starting with studies in test driven development, domain driven design, clean architecture and design pattern.
git clone https://github.com/th14g0d3v/identifier.git
cd identifier/backend
npm install or yarn
sudo systemctl start mongod
yarn test
yarn tsdev
http://localhost:7777/graphql
mutation {
signUp(
email: "jack@mail.com"
password: "jack"
passwordConfirmation: "jack"
) {
email
}
}
query {
login(email: "jack@mail.com", password: "jack") {
accessToken
email
}
}
mutation {
delete(email: "jack@mail.com") {
result
}
}
mutation {
update(
currentEmail: "jack@mail.com"
newEmail: "sparrow@mail.com"
newPassword: "sparrow"
) {
email
}
}
query {
all {
email
password
}
}
query {
load(email: "jack@mail.com") {
email
password
}
}
- Create an account
- Log in to an account
- Delete an account just logged in
- Update an account just logged in
- View all accounts just logged in
- View an account just logged in
Made by Thiago Gomes