Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eoguvo/auth-node
An simple authentication app built with node.js and typescript
https://github.com/eoguvo/auth-node
auth techs typescript
Last synced: about 2 months ago
JSON representation
An simple authentication app built with node.js and typescript
- Host: GitHub
- URL: https://github.com/eoguvo/auth-node
- Owner: eoguvo
- Created: 2021-05-17T01:02:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-27T18:45:01.000Z (over 3 years ago)
- Last Synced: 2023-08-27T18:58:51.265Z (over 1 year ago)
- Topics: auth, techs, typescript
- Language: TypeScript
- Homepage: https://gustavo-henrique-br.github.io/Auth-node/
- Size: 672 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Auth-node
An simple authentication app built with node.js and typescript
π Auth-node 1.0 π Ready! π
Table of contents
=================* [Running](#rodando)
* How to use
* [Prerequisites](#pre-requisitos)
* [Installing](#install)
* [Techs](#techs)
π² Running
Prerequisites
> Before start, you need have installed in your machine:
[Git](https://git-scm.com), [Node.js (npm)](https://nodejs.org/en/) and [Docker-compose](https://docs.docker.com/compose/install/).
> In addition, it is good to have an editor to work on the code, such as [VSCode](https://code.visualstudio.com/).
follow those steps to install:
```bash
# clone the repository in your machine
$ git clone https://github.com/Gustavo-Henrique-br/Auth-node.git# Install the dependencies:
$ yarn
# or
$ npm install# Setup database
$ docker-compose up# Rename the file .env.example to .env
# Optional: generate public and private keys
$ openssl genrsa -out rsa.private 1024
$ openssl rsa -in rsa.private -out rsa.public -pubout -outform PEM
# Copy the content of the files to .env, see examples in .env.example# Running in dev mode
$ yarn dev
# or
$ npm run dev# Just building
$ yarn build
# or
$ npm run build
```
π Technologies
- [Nodejs](https://nodejs.org/en/docs/)
- [Express](https://expressjs.com/)
- [TypeScript](https://www.typescriptlang.org/)
- [Bcrypt](https://www.npmjs.com/package/bcrypt)
- [JWT](https://jwt.io/introduction)
- [Joi](https://joi.dev/api/)
- [node-postgres](https://node-postgres.com/)