https://github.com/yashvardhan-kukreja/deno-auth
User authentication implemented in Deno in accordance with MVC architecture
https://github.com/yashvardhan-kukreja/deno-auth
api backend deno javascript typescript
Last synced: about 1 month ago
JSON representation
User authentication implemented in Deno in accordance with MVC architecture
- Host: GitHub
- URL: https://github.com/yashvardhan-kukreja/deno-auth
- Owner: yashvardhan-kukreja
- Created: 2020-05-29T06:43:07.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-30T01:06:42.000Z (almost 5 years ago)
- Last Synced: 2025-03-25T13:04:31.078Z (about 2 months ago)
- Topics: api, backend, deno, javascript, typescript
- Language: TypeScript
- Homepage:
- Size: 11.7 KB
- Stars: 27
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deno-auth - Playing around with Deno
User authentication functionalities like "registration", "logging in" (jwt and brypt also there :P) in accordance with MVC architecture to give a view of API development with Deno.---
## Functionalities Implemented:- **Registration** (played around with bcrypt package for deno here)
- **Logging in** (played around with jwt package for deno here)
- **CRUD operations** -> creating, reading, deleting users
---
## Project Structure:
- **/controllers/auth_controller.ts** - The functions with their core logic behind the individual API endpoints. Things like login, registration, everything are "implemented" here.
- **/routers/auth_router.ts** - The definitions of final API endpoints/routes.
- **log-monitor.js** - The server-side script corresponding to the log monitor mini application for the friend Alex to tail the logs in real time without loading the entire app.log file again and again.
- **app.ts** - The main script
- **docker-compose.yml** - Well, it is the docker-compose to run the above dockerfile with rightful configuration and manner.
- **.dockerignore** - It consists the folders to ignore while executing docker build behind the scenes.
- **.gitignore** - It consists the folders to ignore while git is tracking changes in the entire project.
------
## Running the project:
**1). For running through docker ->**
```
docker-compose up --build
```
(Base image required: hayd/deno:latest)
**2). For running through deno ->**
```
deno run --unstable --allow-net --allow-read --allow-write --allow-plugin --allow-env app.ts
```---