Flask Reddit: An Extendable and Minimalist Reddit Clone

flask_reddit

flask_reddit is an extendable + minimalist Reddit clone.

This was built so beginners who want a standard CRUD + reddit-like application can quickly get to work.

We utilize:

  • flask as the web framework.
  • nginx as the HTTP server
  • gunicon as the wsgi server.
  • MySQL for our database
  • flask-sqlalchemy as our ORM.
  • bootstrap-journal theme makes us beautiful.
  • virtualenv emcompasses everything.
  • supervisord makes sure our service never crashes.

And thats pretty much it!

All of the configutations are in this repository. Deployment instructions will be out soon.

Features

  • threaded comments
  • up voting
  • subreddits
  • user karma
  • search
  • rate limiting
  • ajax form posting
  • user profiles

Build Instructions

  • Set up an instance of MySQL on your server. Note your username and password.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mysql-server libmysqlclient-dev
  • Set up an instance of nginx on your server. I've provided the .conf scripts needed for our servers in the /server directory.

sudo apt-get install nginx

  • Configure your nginx settings located in flask_reddit/server/nginx.conf.
  • Add your settings into your global conf file located in /etc/nginx/nginx.conf
  • Restart nginx to recognize your settings sudo service nginx restart
  • Set up supervisord to monitor your project to make sure it never crashes. Supervisor is also convenient for simply restarting/starting your project with ease.

sudo apt-get install supervisor

  • When Supervisor is installed you can give it programs to start and watch by creating config files in the /etc/supervisor/conf.d directory. I've provided the conf file which we use in the root directory of this repo as supervisor.conf. An example supervisor command would be running supervisorctl restart YOUR_APP_NAME to restart gunicorn and bring up new changes.
  • Install virtualenv and set up a project root where ever you want.
sudo apt-get install python-virtualenv;
cd /path/to/project;
virtualenv reddit-env;
cd reddit-env;
source bin/activate; # viola, you are now in an enclosed python workspace.
  • Download the repository and install all of the required python modules which this server uses.
git clone https://github.com/codelucas/flask_reddit.git;
cd flask_reddit;
pip install -r requirements.txt
  • Due to sensitive configuration information, I have hidden my personal config.py file in the gitignore. But, I have provided a clean and easy to use config template in this repo named app_config.py.
  • Fill out the flask_reddit/app_config.py file with your own information and then rename it to config.py so flask recognizes it by using mv app_config.py config.py. Please be sure to fill out the mysql db settings similarly to how you set it up!, username, pass, etc
  • Run the kickstart.py script to build the first user and subreddits.

python2.7 kickstart.py

  • flask_reddit has tasks which must occur on regular time intervals. To make this happen, we use the crontab, which is present on UNIX systems.

A crontab is a dash which allows you to specify what programs to run and how often. I've provided flask_reddit's example crontab in the root directory as jobs.cron.

To view your current crontab, run crontab -l. To edit your crontab, run crontab -e.

  • Paste the contents of jobs.cron into your crontab by running crontab -e and pasting! More directions are present in the jobs.cron file.
  • Run the gunicorn server. You won't have to do this ever again if supervisor is set up properly.

sudo sh run_gunicorn.sh

Note that we have now deployed two servers: nginx and gunicorn. nginx is our internet facing HTTP server on port 80 while gunicorn is our wsgi server which is serving up our flask python application locally. nginx reads client requests and decides which requests to foreward to our gunicorn server. For example, nginx serves static content like images very well but it forwards url routes to the homepage to gunicorn.

For a full list of details, view our configs at server/nginx.conf and server/gunicorn_config.py.

Note, for this build to work there are paths that you must change in the wsgi.py file, the server configs located in server directory and the run_gunicorn.sh file.

Refer to the flask project configuration options to understand what to put in your own config.py file.

Do not hesiate to contact me for help or concerns.

Download Details:
Author: codelucas
Source Code: https://github.com/codelucas/flask_reddit
License: MIT License

#flask  #python #nginx #reddit 

What is GEEK

Buddha Community

Flask Reddit: An Extendable and Minimalist Reddit Clone

Flask Reddit: An Extendable and Minimalist Reddit Clone

flask_reddit

flask_reddit is an extendable + minimalist Reddit clone.

This was built so beginners who want a standard CRUD + reddit-like application can quickly get to work.

We utilize:

  • flask as the web framework.
  • nginx as the HTTP server
  • gunicon as the wsgi server.
  • MySQL for our database
  • flask-sqlalchemy as our ORM.
  • bootstrap-journal theme makes us beautiful.
  • virtualenv emcompasses everything.
  • supervisord makes sure our service never crashes.

And thats pretty much it!

All of the configutations are in this repository. Deployment instructions will be out soon.

Features

  • threaded comments
  • up voting
  • subreddits
  • user karma
  • search
  • rate limiting
  • ajax form posting
  • user profiles

Build Instructions

  • Set up an instance of MySQL on your server. Note your username and password.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mysql-server libmysqlclient-dev
  • Set up an instance of nginx on your server. I've provided the .conf scripts needed for our servers in the /server directory.

sudo apt-get install nginx

  • Configure your nginx settings located in flask_reddit/server/nginx.conf.
  • Add your settings into your global conf file located in /etc/nginx/nginx.conf
  • Restart nginx to recognize your settings sudo service nginx restart
  • Set up supervisord to monitor your project to make sure it never crashes. Supervisor is also convenient for simply restarting/starting your project with ease.

sudo apt-get install supervisor

  • When Supervisor is installed you can give it programs to start and watch by creating config files in the /etc/supervisor/conf.d directory. I've provided the conf file which we use in the root directory of this repo as supervisor.conf. An example supervisor command would be running supervisorctl restart YOUR_APP_NAME to restart gunicorn and bring up new changes.
  • Install virtualenv and set up a project root where ever you want.
sudo apt-get install python-virtualenv;
cd /path/to/project;
virtualenv reddit-env;
cd reddit-env;
source bin/activate; # viola, you are now in an enclosed python workspace.
  • Download the repository and install all of the required python modules which this server uses.
git clone https://github.com/codelucas/flask_reddit.git;
cd flask_reddit;
pip install -r requirements.txt
  • Due to sensitive configuration information, I have hidden my personal config.py file in the gitignore. But, I have provided a clean and easy to use config template in this repo named app_config.py.
  • Fill out the flask_reddit/app_config.py file with your own information and then rename it to config.py so flask recognizes it by using mv app_config.py config.py. Please be sure to fill out the mysql db settings similarly to how you set it up!, username, pass, etc
  • Run the kickstart.py script to build the first user and subreddits.

python2.7 kickstart.py

  • flask_reddit has tasks which must occur on regular time intervals. To make this happen, we use the crontab, which is present on UNIX systems.

A crontab is a dash which allows you to specify what programs to run and how often. I've provided flask_reddit's example crontab in the root directory as jobs.cron.

To view your current crontab, run crontab -l. To edit your crontab, run crontab -e.

  • Paste the contents of jobs.cron into your crontab by running crontab -e and pasting! More directions are present in the jobs.cron file.
  • Run the gunicorn server. You won't have to do this ever again if supervisor is set up properly.

sudo sh run_gunicorn.sh

Note that we have now deployed two servers: nginx and gunicorn. nginx is our internet facing HTTP server on port 80 while gunicorn is our wsgi server which is serving up our flask python application locally. nginx reads client requests and decides which requests to foreward to our gunicorn server. For example, nginx serves static content like images very well but it forwards url routes to the homepage to gunicorn.

For a full list of details, view our configs at server/nginx.conf and server/gunicorn_config.py.

Note, for this build to work there are paths that you must change in the wsgi.py file, the server configs located in server directory and the run_gunicorn.sh file.

Refer to the flask project configuration options to understand what to put in your own config.py file.

Do not hesiate to contact me for help or concerns.

Download Details:
Author: codelucas
Source Code: https://github.com/codelucas/flask_reddit
License: MIT License

#flask  #python #nginx #reddit 

brayden diego

1604387106

Bigbasket Clone | BIgBasket Clone App | BigBasket App Clone Script

Amid the COVID-19 crisis, on-demand grocery delivery apps are a massive hit. The convenience of availing doorstep essentials, coupled with accessing a wide range of products, is propelling the need for grocery delivery apps more than ever. Even retail grocery outlets are eyeing to explore the online market space due to its massive popularity and revenue.

Are you an entrepreneur aiming to initiate your Bigbasket clone app development? If so, are you ready to tackle the COVID-19 pandemic situation? This blog discusses a few vital strategies that can make an app like Bigbasket combat the outbreak situation comprehensively.

Take care of your supply chain: Coping with the demands require an all-encompassing, ever-present supply chain. Your supply chain includes grocery suppliers and delivery chains. Hence, maintain adequate stock and build healthy relationships with suppliers to avoid the risk of running out of groceries.

Equip your delivery chain with safety gear: Your delivery chain comes in direct contact with your customers. Hence, provide safety gear like gloves, masks, sanitizers, etc., to your delivery drivers. Besides, automating the process of verifying your delivery drivers on their safety standards with a face mask recognition software can come in handy.

Encourage contactless delivery options: One of the significant reasons for virus transmission is through external physical contact. Eliminate any form of contact in your on-demand grocery delivery app ecosystem by encouraging your delivery workers to adapt to ‘zero-contact’ deliveries. This way, instead of handing over grocery orders directly, your delivery drivers will drop them at discrete spots suggested by customers.

Safety badges for grocery stores: Building the trust factor is crucial to sustain in the market. Hence, scrutinize grocery stores on their safety standards and provide safety badges to them. By displaying safety badges near their names, the customer trust-factor enhances substantially.

Summing up,
Surviving the outbreak situation will open the floodgates to unrestricted revenue for an entrepreneur. Implement these strategies in your Bigbasket clone script and scale your grocery delivery app among the masses.

#bigbasket clone #bigbasket clone app #bigbasket clone app development #bigbasket clone app development company #bigbasket clone script #bigbasket app clone

Marcus Anthony

1609310382

Letgo Clone | Letgo Clone App | Buy and Sell Classified Marketplace Script

The reseller e-commerce business has become the talk of the town. The reason for the huge eminence of reseller e-commerce in today’s world is due to the benefits it assures. With a robust and user-friendly app, your reseller e-commerce business is sure to take you places.

Before stepping out to invest in the reseller e-commerce business, consider launching an app like Letgo that is armed with several rich features. In this blog, you will get to know the list of features of the app that will make your reseller business a sure-shot success.

Inventory management- Sellers can restock and manage the inventory without any hassles.

Catalog management- Sellers can sort and group their products under categories. Also, sellers can add or remove products from the catalog in just a few taps.

Diverse payment options- The app offers users with multiple payment options with which they can make their payments by choosing the convenient payment option.

Push notifications- The push notifications are integral in keeping users up-to-date with your app. Alerts regarding new product arrival, offers, updates, etc. can be sent via push notifications.

These are the features that will give an extraordinary user experience. Let us next learn about the revenue model of the app.

Commission fees- Sellers who get orders via your app will pay commission fees. Associating with multiple sellers will amplify the revenue through commission fees.

Promotional content- You can promote sellers’ products on your app under the digital banner section.

Premium services- You can allow access to certain advanced features on a paid basis to users. Formulate monthly or yearly subscription plans so that users can choose their convenient plan.

Conclusion

The Letgo clone script is the best reseller e-commerce app to invest in. Head towards to find the app developer who has experience in building clone apps with robust functional models.

##letgo clone ##letgo clone app ##letgo clone script ##letgo clone app development ##letgo clone software ##letgo clone open source

Marcus Anthony

1612168786

Freecharge Clone, Freecharge Clone Script, Custom Recharge & Bill Payment App Solution

Give your users the ease of paying bills, recharging their mobile phones online and, transferring funds in just a few taps and swipes by developing an** app like Freecharge**. With the global payments market skyrocketing, the right time is here for developing an app such as this. So don’t wait anymore! Customize, incorporate and launch the app in a few days!

#freecharge clone #freecharge clone script #freecharge clone app #freecharge clone app development #freecharge app clone #freecharge app clone development

Charles Brent

1623241640

Letgo Clone | Best Letgo Clone Script | Letgo Clone App

Are you looking to build a top-tier buy-sell marketplace that allows the users to connect with the local sellers directly? Then PassUp is for you - Trioangle’s letgo clone script. An online buy-sell marketplace is a bridge that fills the gap between the local buyers and sellers to buy or sell the desired products. Users can discover the best-priced nearby products with a few clicks and a couple of swipes.

Sellers list their products on the classified marketplaces and the interested buyer interacts with the respective seller for more information. If they are satisfied with the quality of the product and pricing then make the purchase. Our script is a white-label solution, you can quickly rebrand the app with the branding elements of your business and launch it instantly.

Trioangle

Trioangle is one of the best web and mobile app development companies in the market, which provides ready-made letgo clone scripts for entrepreneurs to start their own business instantly. Scripts like Airbnb clone, Uber clone, UberEats clone, Instacart clone, Gojek clone, Tinder clone, Fancy clone, Postmate clone, JustEat clone, Drizly clone, etc are available. Our online classified scripts support both desktop and mobile (android & iOS) available for you at an affordable price, designed using advanced technology, and all the essential features are integrated with the script.

Benefits Of Letgo Clone Script

  • Our letgo clone is a ready-made script available for entrepreneurs to start their business instantly when developing a script consumes the entrepreneur’s time & more cost.
  • The letgo clone app is free to use for users to buy or sell anything.
  • Buyers can interact with the seller easily using the chat option
  • Users can easily sign-up using their phone numbers, email, or social logins. Also, they can share offerings with their social friends easily.
  • Both the buyer and seller can check for the list of products available at the best prices.
  • Users can make online payments in secure mode - online transactions medium like PayPal & stripe available. With our script admin can integrate the crypto wallet payment method which is an additional feature available under customization.
  • Sellers can post advertisements free for their listing and can make multiple listings using their register account.

Revenue Model of Classified Business

Entrepreneurs can earn more revenue using the classified script in some ways,

  • Transaction fees: Though the app is free, doesn’t mean that it couldn’t be profitable. For every successful purchase, users have to pay a certain amount to the admin. Admin can add a certain percentage for every product.
  • Promotional fees: Admin can charge sellers an amount for displaying their product listing to the top of the result page in such a way that many buyers can see it.
  • Service fee: Also, they can charge a service fee from the final product’s sold price.
  • Google Adsense: This is one of GOOGLE’s tools that helps to earn revenue for displaying the ads in the app’s empty space.

If you want to start your own online classified business with our letgo clone script then contact us for more information Whatsapp at 6379630152 or Email at sales@trioangle.com. You can also check our free demo using the link - https://www.trioangle.com/letgo-clone/#demo

#letgo-clone #letgo-clone-script #offerup-clone #shpock-clone #carousell-clone