description: This aplication can get all headlines, paragraphs, links from othes blogs techs, now is only working in https://devgo.com.br
- ExpressJs
- Docker
- NodeJS
- TypeOrm
- Postgres-Sql
- TypeScript
- Jwt
- tsrynge
- github actions CI/CD
- babel
- NGIX
- AWS cloud
- PM2
- router53
- certbot
- google domain
- puppeteer
- The Aplication is hosted at AWS CLOUD ubunto 20.04 instance
- The Data Base postgres is running in a docker instance
- The Application has a certificate https from certbot
- The applicaiton has continious integration and continuous delivery CI/CD
Import the Insomnia.json
on Insomnia App or click on Run in Insomnia button.
- Node.js
- Yarn or npm
- Docker and Docker Compose
Clone the project and access the folder
git clone https://github.com/savinnsk/fav-blog-links.git && cd fav-blog-links
Follow the steps below
# Install the dependencies
$ yarn
# Make a copy of '.env.example' to '.env'
# and set with YOUR environment variables.
$ mv .env.exemple .env
$ SHOULD HAVE A DATABASE CALLED api-fav-blogs
# Once the services are running, run the migrations
$ yarn typeorm migration:run -d src/shared/infra/typeorm/data-source.ts
# Start all the services and the application with Docker Compose
$ sudo docker-compose up -d
# Well done, project is started!
#ORM AND DATABASE
ORM_USERNAME=postgres
ORM_HOST=localhost
ORM_PASSWORD=admin
ORM_DATABASE=api-fav-blogs
#AUTHENTICATE JWT
USER_SECRET_TOKEN=batata
To run test
yarn test
endpoint: http://localhost:5000/users/create
method: POST
request body
- properties : {
- name : string
- password : string
- email: string
}
endpoint: http://localhost:5000/sessions
method: POST
request body
- properties : {
- name : string
- password : string
}
endpoint: http://localhost:5000/bookmarks/create
method: POST
Authentication required
request headers
- token
-type : jsonwebtoken
request body
- properties {
- label : string
- link : string
}
endpoint: https://deploy.savinnsk.com/bookmarks/delete/{id}
method: DELETE
request params
- user_id
- bookmark_id
Response 201
{
render to page create a bookmark
}
endpoint: http://localhost:5000/bookmarks/edit/{id}
method: PUT
Authentication required
request headers
- token
-type : jsonwebtoken
request params
- id
request body
- properties {
- label : string
- link : string
}
##Get All bookmarks
endpoint: https://deploy.savinnsk.com/bookmarks/list/user_id
method: GET
request params
user_id
-type : string
Response 200
Array bookmarks
-type : Object[bookmarks]
Developed for: Savio Picanço Do Espirito Santo Brito
This project is licensed under the MIT License - see the LICENSE file for details.