Skip to content

This TypeScript application leverages the Express.js framework to implement a basic CRUD (Create, Read, Update, Delete) API with secure route using jwt and bcrypt for password hashing

Notifications You must be signed in to change notification settings

Proac-Tee/express_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Chat forum App

This TypeScript application harnesses the power of Express.js framework to create a robust CRUD (Create, Read, Update, Delete) API tailored for managing a collection of chats. MongoDB serves as the backend database, storing person objects, each characterized by an id and chat data. The API provides endpoints for seamless CRUD operations on this collection. Additionally, it incorporates user registration functionality with JWT (JSON Web Token) for secure authentication, session management, and implementation of user roles and permissions. To showcase the API, Vue.js version 3 (Vue 3) was employed.

About the Stack

MongoDB Express REST API nodejs TypeScript Vue.js Vuex Vue Router JWT


Setting up the Backend

navigate to /server to see setup instructions


Setting up the Frontend

navigate to /client to see setup instructions

File struture of important files

express_app/
├── client/
│ ├── src/
│ │ ├── App.vue
│ │ ├── index.ts
│ │ ├── main.ts
│ │ ├── router.ts
│ │ ├── style.css
│ │ ├── assets/
│ │ │ └── (static assets)
│ │ └── components/
│ │ ├── Header.vue
│ │ ├── GetStarted.vue
│ │ ├── Login.vue
│ │ └── Messages.vue
└── server/
├── src/
│ ├── authenticateToken.ts
│ ├── generateSecretKey.ts
│ ├── index.ts
│ ├── controller/
│ │ └── controller.ts
│ ├── router/
│ │ └── routes.ts
│ └── schema/
│ ├── ChatSchema.ts
│ └── UserSchema.ts

About

This TypeScript application leverages the Express.js framework to implement a basic CRUD (Create, Read, Update, Delete) API with secure route using jwt and bcrypt for password hashing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published