https://github.com/tzuyi0817/code-immediate-backend
code immediate api
https://github.com/tzuyi0817/code-immediate-backend
express mogoose mongodb typescript
Last synced: 9 months ago
JSON representation
code immediate api
- Host: GitHub
- URL: https://github.com/tzuyi0817/code-immediate-backend
- Owner: tzuyi0817
- Created: 2022-10-26T03:45:53.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T05:48:49.000Z (about 2 years ago)
- Last Synced: 2025-01-22T04:08:23.163Z (11 months ago)
- Topics: express, mogoose, mongodb, typescript
- Language: TypeScript
- Homepage: https://code-immediate-backend.vercel.app
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# code-immediate-backend
This is an api of the code immediate backend, the database uses MonogoDB.
## Features
- RESTful routing
- Models with proper relationships
- Controllers/Models etc with proper separation of concerns
- JWT Authentication
- RESTful errors
## Routes List:
### User
| Method | URI | Action |
|------------|-----------------------------------|---------------------------------------------------------|
| `POST` | `api/login` | `controllers\userController@login` |
| `GET` | `api/github` | `auth redirect` |
| `GET` | `api/github/callback` | `controllers\userController@github` |
| `POST` | `api/register` | `controllers\userController@register` |
| `POST` | `api/logout` | `controllers\userController@logout` |
### Code
| Method | URI | Action |
|------------|-----------------------------------|---------------------------------------------------------|
| `GET` | `api/code` | `controllers\codeController@getCodeList` |
| `POST` | `api/code` | `controllers\codeController@postCode` |
| `GET` | `api/code/{id}` | `controllers\codeController@getCode` |
| `PUT` | `api/code/{id}` | `controllers\codeController@updateCode` |
| `DELETE` | `api/code/{id}` | `controllers\codeController@deleteCode` |