-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6cbe62
commit 2320d99
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# API Changelog | ||
|
||
## 2020-11-25 » v1.0.0 | ||
|
||
| Method | Path | Token | Descripción | | ||
| ------ | ---------- | ----- | -------------------- | | ||
| `POST` | `/posts` | ✔️ | Create new post | | ||
| `GET` | `/posts` | ✔️ | Get posts | | ||
| `POST` | `/users` | ❌️ | Register new user | | ||
| `POST` | `/session` | ❌️ | Crete new user token | | ||
| `POST` | `/upload` | ✔️ | Upload image | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Technologies | ||
|
||
## Node dependencies | ||
|
||
- bcrypt: For encipt and compare user password. | ||
- cors: Enable cors for browsers (configured for any domain) | ||
- dotenv: Manage many .env files. | ||
- express: Web server. | ||
- express-paginate: Parse query parameters to paginate responses. | ||
- express-routes: Print routes un development mode. | ||
- express-validator: Requests validations middelware. | ||
- http-status-codes: Constants enumerating the HTTP status codes. | ||
- jsonwebtoken: Sign and verify tokens. | ||
- morgan: Logger. | ||
- multer: Used for upload images. | ||
- sequelize: SQL ORM (postgres in production, sqlite in dev and memory for tests) | ||
|
||
## Database | ||
|
||
For this MVP use SQL databases. | ||
Choosed SQL for my knowledge with this paradigm and my experience using sequelize (SQL ORM). | ||
I would have preferred to use MongoDB (or some other document database) to exploit horizontal scale and faster access times.Don't use mongo because of the times I had available to perform the MVP |