Skip to content

Simple beginner news posting web app using flask

License

Notifications You must be signed in to change notification settings

dhina016/newsland

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Newsland

Newsland is basic webapplication using flask. This is my first flask app. So, it may contains errors and its a simple news feed website. The guest can see the news only. After registration you can able to post news and edit your news. Then having admin login. Admin can access to post, edit, pin the news feed. Its very simple and basic concept. You can use this source to understand the working flask and jinja code.
Explore the docs »

Report Bug · Request Feature

Table of Contents

About The Project

Product Name Screen Shot

Newsland is basic webapplication using flask. This is my first flask app. So, it may contains errors and its a simple news feed website. The guest can see the news only. After registration you can able to post news and edit your news. Then having admin login. Admin can access to post, edit, pin the news feed. Its very simple and basic concept. You can use this source to understand the working flask and jinja code

Built With

Getting Started

Follow the installation steps to open project without error

Installation

  1. Download and extract the project
  2. I'm using xampp, so you can also use it and Create the database
  3. Upload or Import flask.sql in your database.
  4. Download python 3.x and install on your PC. My pc is 64bit so i installed Python3(64bit). Set environmental variable for both python and pip or else you get command not found.
  5. I've used virtual environment. It's not necessary, but using virtual environment is preferable.
    Note: You can skip the 5th step if you don't want virtual environment
    (i) Make sure you've set your python path in environmental variable and then install
python -m venv venv

(ii) I've already created. So now you want to activate it. I'm using windows. so I used CMD. Now open the cmd of your current project folder. My project folder is newsland.

D:\flask\newsland> cd /venv/Scripts/activate

After venv is activated

(venv) D:\flask\newsland>

(iii) Once you can close the project, this command is user to open the venv again and for deactivation command also given.

D:\flask\newsland>workon venv

If not working again activate your venv

(venv) D:\flask\newsland>

For Deactivating,

D:\flask\newsland> cd /venv/Scripts/deactivate
  1. Install the following requirements by following command.
D:\flask\newsland> pip install -r requirements.txt
  1. To run the the code, use this command
D:\flask\newsland>python app.py

or

D:\flask\newsland>flask run
  1. If you get any error, make sure you've done following things
1. Python version should be 3.x.
2. Settingup Environment variables.
3. Installed all requirements without errors.
4. I am using 64 bit. If you are using 32 Bit google it and fix it.
5. Check the server is active or not.
6. Imported sql file.
7. Everything is done.
  1. Admin Login.
url : http://127.0.0.1:5000/admin
Username => admin,
Password => 111111,

Usage

Newsland is a webapp for posting latest news. This newsland is very simple to use. Images are given below
1.Requirments : S1

2.Welcome Page : S1

3.News as Guest : S1

4.Contact : S1

5.Register : S1

6.Login : S1

7.News as User : S1

8.Add News : S1

9.EditNews : S1

9.Search by title : S1

10.News as Admin and Pin : S1

11.Filter by Name :
You can also filter by name, date, category by clicking name, date, category in the news page. S1

12.Logout : S1

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Project Link: https://github.com/dhina016/newsland

=======

About

Simple beginner news posting web app using flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published