https://github.com/douglasvolcato/crm-system
Backend CRM made with TypeScript, without any dependencies.
https://github.com/douglasvolcato/crm-system
node nodejs object-oriented-programming typescript
Last synced: 7 months ago
JSON representation
Backend CRM made with TypeScript, without any dependencies.
- Host: GitHub
- URL: https://github.com/douglasvolcato/crm-system
- Owner: DouglasVolcato
- Created: 2022-10-04T22:16:41.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-13T04:35:09.000Z (about 3 years ago)
- Last Synced: 2025-02-08T21:46:08.224Z (9 months ago)
- Topics: node, nodejs, object-oriented-programming, typescript
- Language: TypeScript
- Homepage:
- Size: 193 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CRM-system
## How to run this project:
- ### Install "@types/node": `npm install`
- ### Create e `.env` file and add PORT and ENCRYPT_KEY variables
- ### Compile the project to JavaScript: `npm run build`
- ### Start the project: `npm run start`## Routes:
- ### POST: `/users/create-user`
#### Example request-body: {"name": "Douglas", "username": "DouglasVolcato", "email": "douglasvolcato@gmail.com", "password": "teste123"}
- ### PUT: `/users/update-user/:id`
#### Example request-body: {"name": "Teste", "password": "TesteTeste"}
- ### DELETE: `/users/delete-user/:id`
- ### GET: `/users/find-all-users`
- ### GET: `/users/find-users-by-name/:name`
- ### GET: `/users/find-user-by-id/:id`
- ### GET: `/users/find-user-by-email/:email`- ### POST: `/auth/login`
#### Example request-body: {"email": "douglasvolcato@gmail.com", "password": "teste123"}- ### POST: `/customers/create-customer`
#### Example request-body: {"name": "Teste", "age": 77, "phone": 123123123, "city": "Porto Alegre", "notes": "Empty"}
- ### PUT: `/customers/update-customer/:id`
#### Example request-body: {"name": "Customer", "age": 33}
- ### DELETE: `/customers/delete-customer/:id`
- ### GET: `/customers/find-all-customers`
- ### GET: `/customers/find-customers-by-name/:name`
- ### GET: `/customers/find-customer-by-id/:id`