Giter Site home page Giter Site logo

ethanleitch / digitech-website-2022 Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 376 KB

An interactive map of John McGlashan College, made for NCEA Web Design and Development Standards 91891, 91893 and 91897.

License: GNU General Public License v3.0

JavaScript 20.81% CSS 17.89% Python 25.26% Jinja 34.69% HTML 1.36%
flask mysql python3

digitech-website-2022's Introduction

digitech-website-2022

An interactive map of John McGlashan College, made for NCEA Web Design and Development Standards 91891, 91893 and 91897.

Features

Fully functional search bar with clickable markers

Searchbar

Backend access with Flask-Admin

Flask admin panel

Dark and light mode

Dark and light themes

Setup

Setting up MySQL

  1. Download and install MySQL Community Server.
  2. Launch the server.
  3. Log in to MySQL (mysql -u root -p or sudo mysql, depending on your system).
  4. Set up a user with the neccessary permissions. This user will be used by the webapp to connect to the database.
CREATE USER 'joebloggs'@'localhost' IDENTIFIED BY 'password';
GRANT CREATE, ALTER, DROP, INSERT, UPDATE, DELETE, SELECT, REFERENCES, RELOAD on *.* TO 'joebloggs'@'localhost' WITH GRANT OPTION;
  1. Load the example database.
CREATE DATABASE classroom_db;

Exit mysql and run this in your shell.

mysql -u USERNAME -p classroom_db < mysql/classroom_db_dump.sql

Setting up the webapp

  1. Install all required packages with pip install -r requirements.txt. It is recommended that you do this in a virtual environment.
  2. Run setup.py to set both the webapp username & password (for the admin panel), and the MySQL username & password that you set up in the first section.
  3. You can now run the webapp with flask run.

Disclaimer

Keep in mind that this is a development server, and you should not use it in a production deployment. For more information on deploying, read the flask deployment instructions.
Furthermore, OpenStreetMap's tile server has certain limitations, and in a production deployment, you should host your own tile server.

Licensing

The source code of this project (excluding external packages and software) is licensed under the GNU GPL v3.0 license.

External software used

External packages used

digitech-website-2022's People

Contributors

dependabot[bot] avatar ethanleitch avatar

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.