Have you ever wondered what tone the things you tweet might feel like to others?
What about that company you really like? When people mention it, is it overall good or bad?
Ever curious whether or not that cool new hashtag you created is having a positive impact?
Well, wonder no more!
With TwtSavy, you can use the power of AI to get an answer in under a minute!
Check it out in action here: https://youtu.be/kHFylnFsdKw
This is meant as a portofolio piece and not intended to become a full-fledged application.
You are more than welcome to fork the repo and play around with it at will. Necessary environmental variables are described in the env-example.md, and the necessary packages for each part of the application is described either in the package.json (node) or the requirements.txt (python) files.
Boilerplate folders without any business logic are omitted from the below tree.
twtsavy (root)
│
├── client **React Native Mobile App
│ ├── __tests__
│ ├── android
│ ├── assets **Custom fonts and images
│ ├── components **Contains business logic or makes use of state changes
│ ├── containers **Generalized styled containers for re-use
│ ├── interfaces **Data transfer objects and interfaces, with initial states
│ ├── ios
│ ├── redux **Implementation of Redux store and slices (actions & reducers)
│ ├── screens **App views, reached through navigation
│ ├── services **Communication with the server folder - API logic
│ ├── types **.env variable types and general types.ts file - mostly navigation
│ └── utilities **Validation and helper functions
│
├── logos **Tech Stack logos...
│
├── model_api **Independent REST API to serve the AI (LSTM) model - Sentiment Analysis
│ ├── lstm_model **Model code, weights and vectorizer vocabulary
│ ├── model_api **General DJANGO settings and exposed urls
│ └── sentimentAI **REST logic with database models (Postgres), serializers and API views
│ └── migrations
│
└── server **Node Backend using NestJS
├── src
│ ├── analyze **Analyze endpoints, responsible for handling sentiment analysis
│ │ ├── services **Twitter API and model_api business logic
│ │ └── utilities **Data Transfer Objects and utility functions
│ └── users **User endpoints, handles user creation, validation and query storage
│ ├── services **Backend to Database (MongoDB with Mongoose) business logic
│ └── utilities **Data Transfer Object for users and database Schema
└── test
- Built using React Native
- State management using Redux
- HTTP calls using AXIOS
- Written in TypeScript
- Built using NestJS
- Connected to MongoDB using Mongoose
- HTTP calls using AXIOS
- Written in TypeScript
- Built using DJANGO
- Minimal UI using the DJANGO REST Framework
- Model developed using Tensorflow/Keras
- Connected to a PostgresSQL database
- Written in Python