Skip to content

The back-end repository to the mark hashtags project

Notifications You must be signed in to change notification settings

JJMoraes/mark_hashtags-back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Back-End from Mark Hashtags Project 👋

This project is an internship challenge from Magrathea Labs. The challenge consists in to build a web application that's allows to mark twitter hashtags and collect tweets and retweets with it. Is also possible remove the marked hashtags. After collect, the app should to show the tweets as a list by hashtag on front-end.

The back-end repository

  • On this repository you will find:

    • A RESTful API with Java SpringBoot
    • The most common mapping REST requests, as DELETE, GET and POST
    • The pattern SpringBoot Web Security
    • Authentication with Twitter OAuth and JWT Token

Useful links


Install the Project

git clone https://github.com/JJMoraes/mark_hashtags-back.git

Basics configs

You need to edit applications properties, as below

This is an illustration of application properties file

Note that, you will need a twitter developer account and create a twitter app at standard v1.1 API. After that, you need to set the Database configurations url, user and password and the keys from your twitter app.

Running using CLI

First you'll need to install this external requirements

External Requirements

  1. I'm using Java 11.
  2. I'm using Maven 3.6 too
  3. I'm also are using MySQL 5.7
  4. If you want to run this project with an IDE we recommended that you install the plugins of lombok. There are in mostful Java IDE's like Eclipse, IntelliJ and VsCode.

Run Spring Boot

cd mark_hashtags-back

mvn spring-boot:run

Run tests

Before running tests you will need to disable JWT filter on Security Config class

This is an illustration of Security Config file

To avoid unique constraints errors on save tests, make sure that your database tables are empty

Run with Docker

First you'll need to install the docker +19.03 and docker-compose +1.17 Second you'll need to install the Maven +3.6.

cd mark_hashtags-back

mvn -N io.takari:maven:0.7.7:wrapper

./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=springio/gs-spring-boot-docker

docker-compose up --build

Running at localhost:8080

Show your support ⭐️

Give a ⭐️ if this project helped you!


About

The back-end repository to the mark hashtags project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages