https://github.com/ialopezg/backend
A basic skeleton with class abstraction, global & local validation, global & local exception handlers, logging & data tracking, data transfer objects, execution context, authentication, users & user roles, migrations, pagination, and default dispatchers. All built with NestJS.
https://github.com/ialopezg/backend
authentication class-abstraction context-execution data-transfer-object dispatchers dto exceptions logs migrations seeders user-roles users validation
Last synced: 8 months ago
JSON representation
A basic skeleton with class abstraction, global & local validation, global & local exception handlers, logging & data tracking, data transfer objects, execution context, authentication, users & user roles, migrations, pagination, and default dispatchers. All built with NestJS.
- Host: GitHub
- URL: https://github.com/ialopezg/backend
- Owner: ialopezg
- License: mit
- Created: 2021-09-13T02:03:19.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-09T04:57:14.000Z (over 3 years ago)
- Last Synced: 2025-03-13T07:32:18.987Z (over 1 year ago)
- Topics: authentication, class-abstraction, context-execution, data-transfer-object, dispatchers, dto, exceptions, logs, migrations, seeders, user-roles, users, validation
- Language: TypeScript
- Homepage:
- Size: 1.41 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
:zap: Backend Module :zap:
## Description
[CoreJS - Backend](https://github.com/ialopezg/corejs) is a toolset that helps you to develop and debug modern applications. This tool is made to be used in [Node.js](https://nodejs.org), which allows you to easily build efficient, scalable applications. It uses modern JavaScript, is built with [TypeScript](https://typescriptlang.org) and bring best JavaScript concepts.
## Getting started ✨
```bash
# 1. Clone the repository
git clone https://github.com/ialopezg/backend.git
# 2. Enter your newly-cloned folder
cd backend
# 3. Install dependencies
npm install
# 4. Start the server
npm run start
```
## Features
Compatible with both TypeScript and ES6 (Recommend to use [TypeScript](https://www.typescriptlang.org/)
### Available modules
- [Preferences](docs/modules/preferences.md): Global preferences.
- `Mailer`: Global email.
- `Users`: User management.
- `Auth`: Authorization and authentication management.
- `Token`: Token management, provision, and renew.
## People
Author - [Isidro A. Lopez G.](https://github.com/ialopezg)
## License
CoreJS - Backend under [MIT](LICENSE) license.
---
© Copyright 1995-present - [Isidro A. Lopez G.](https://ialopezg.com/)
```html
window.fbAsyncInit = function() {
FB.init({
appId : '1249950735404556',
cookie : true,
xfbml : true,
version : '{api-version}'
});
FB.AppEvents.logPageView();
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
```
comprobar estado
```javascript
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
```
response
```javascript
{
status: 'connected',
authResponse: {
accessToken: '...',
expiresIn:'...',
signedRequest:'...',
userID:'...'
}
}
```
```javascript
function checkLoginState() {
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
}
```