Get in the press 📰 Be the source a journalist is looking for.
- PHP >= 7.4
- Docker
- Clone the repository into
~/dev
git clone git@github.com:baddiservices/clnkgo.io.git- To avoid user/group permissions issues, let's export your user ID & group ID
export WWWUSER=$(id -u ${USER}) WWWGROUP=$(id -g ${USER})- Copy
.env.exampleto.env
cp .env.example .env- Build docker containers
docker-compose up -d- 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 |
- Connect to app container via SSH
docker-compose exec clnkgo /bin/bash- Install project dependencies
> composer install && php artisan key:generate && php artisan storage:link- Run migration and seed default data
> php artisan migrate && php artisan db:seed && php artisan passport:install- Build front end
> npm install && npm run dev(Assuming you've installed Composer)
Fork this repository, then clone your fork, and run this in your newly created directory:
composer installNext 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:generateRun the database migrations (Set the database connection in .env before migrating)
php artisan migrate && php artisan db:seedThen start your server:
php artisan serveYou 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 --daemonRun scheduled commands
php artisan schedule:run-
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_SECRET_KEY
Set your Stripe API secret key you can get it from your Stripe account
