Coder Social home page Coder Social logo

5baddi / clnkgo Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 59.44 MB

Get in the press 📰 Be the source a journalist is looking for.

Home Page: https://app.clnkgo.com

Shell 0.04% PHP 9.27% CSS 73.55% JavaScript 10.39% Blade 6.69% Dockerfile 0.04% Vue 0.01%
saas press journalists

clnkgo's Introduction

ClnkGO

PHP MySQL Laravel

Get in the press 📰 Be the source a journalist is looking for.

screenshot

Requirements

  • PHP >= 7.4
  • Docker

Get started

Setup

  1. Clone the repository into ~/dev
git clone [email protected]:baddiservices/clnkgo.io.git
  1. To avoid user/group permissions issues, let's export your user ID & group ID
export WWWUSER=$(id -u ${USER}) WWWGROUP=$(id -g ${USER})
  1. Copy .env.example to .env
cp .env.example .env
  1. Build docker containers
docker-compose up -d
  1. Check all containers are running
docker-compose ps
NAME COMMAND SERVICE STATUS PORTS
mysql "tini -- /docker-ent…" mysql-server running (healthy) 0.0.0.0:3306->3306/tcp
clnkgo "start-container" php71 running 0.0.0.0:80->80/tcp
  1. Connect to app container via SSH
docker-compose exec clnkgo /bin/bash
  1. Install project dependencies
> composer install && php artisan key:generate && php artisan storage:link
  1. Run migration and seed default data
> php artisan migrate && php artisan db:seed && php artisan passport:install
  1. Build front end
> npm install && npm run dev

Dependencies installation

(Assuming you've installed Composer)

Fork this repository, then clone your fork, and run this in your newly created directory:

composer install

Project configuration

Next you need to make a copy of the .env.example file and rename it to .env inside your project root.

Run the following command to generate your app key:

php artisan key:generate

Run the database migrations (Set the database connection in .env before migrating)

php artisan migrate && php artisan db:seed

Then start your server:

php artisan serve

You can now access the server at http://127.0.0.1:8000

To see all defined routes and corresponding controllers methods use php artisan route:list console command

Queue listen

php artisan queue:work --timeout=2000 --sleep=3 --tries=3 --daemon

Run scheduled commands

php artisan schedule:run

Twitter API Config variables

  • TWITTER_BEARER_TOKEN

    Set your Twitter App API bearer token you can get it from your Twitter developer account

  • TWITTER_MAIN_HASHTAGS

    Set main hashtags for queries

Stripe API Config variables

  • STRIPE_API_SECRET_KEY

    Set your Stripe API secret key you can get it from your Stripe account

clnkgo's People

Contributors

5baddi avatar

clnkgo's Issues

Improve most popular for pricing card

Example

https://embed.so

screenshot
)

<div class="absolute top-0 right-0 mr-5 -mt-5 rounded-full border border-yellow-300"><div class="inline-flex text-sm font-semibold py-1 px-3 mt-px text-yellow-700 bg-yellow-100 rounded-full">Most popular 🔥</div></div>

Save tweets job overlapping during save twitter user

Issue

Log error · SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1539563688587395072' for key 'PRIMARY' (SQL: insert into tweets (id, url, published_at, source, author_id, text, lang, due_at, email, possibly_sensitive, referenced_tweets, attachments, context_annotations, public_metrics, geo, entities, withheld, hashtag, updated_at, created_at) values (1539563688587395072, https://twitter.com/791601022301007872/status/1539563688587395072, 2022-06-22 10:59:21, Twitter Web App, 791601022301007872, Money Box Live is at 3 PM today on Self Publishing but next week it's all things fraud. Have you been targeted by fraud or lost money to fraudsters? We'd like to hear from you so please email [email protected] or DM me #journorequests #journorequest, en, 2022-06-27 00:00:00, [email protected], 0, null, null, null, {"retweet_count":0,"reply_count":0,"like_count":1,"quote_count":0}, null, {"hashtags":[{"start":224,"end":239,"tag":"journorequests"},{"start":240,"end":254,"tag":"journorequest"}]}, null, journorequest, 2022-06-22 11:00:50, 2022-06-22 11:00:50))

Solution

  • Move saving of Twitter user to separate job without overlapping
  • Refactor save tweets jobs

Premium API

Provide a premium API for external use with a subscription

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.