GithubHelp home page GithubHelp logo

greenier's Introduction

greenier

Installation

Install the prerequisites:

apt install git mariadb-server libmysqlclient-dev
pip3 install virtualenv

Setup database for the server:

mysql -uroot -p
mariadb> CREATE DATABASE greenier DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_general_ci;
mariadb> GRANT ALL PRIVILEGES ON greenier.* to 'greenier'@'localhost' IDENTIFIED BY '<password>';
mariadb> exit

Activate the virtual environment: virtualenv venv source venv/bin/activate

From this part, we are inside the virtual environment.

Clone this repository to your local machine:

(venv) git clone https://github.com/hung3a8/greenier.git
(venv) cd greenier

Inside the repository, start installing Python requirements: (venv) pip3 install -r requirements.txt

Now you will need to create new file greenier/local_settings.py. Here, you put down some private settings like you database settings (including your password), etc. This file is excluded from being tracked by git so feel free to put any settings there. greenier/settings.py will directly read settings from greenier/local_settings.py, but Django won't track it for reloading.

Now, you should verify that everything is working fine:

(venv) python3 manage.py check

We need to collect static files into STATIC_ROOT as specified in the settings:

(venv) python3 manage.py collectstatic

We must generate the schema for the database, since it is currently empty:

(venv) python3 manage.py migrate

The database is currently empty. You will now need to load the default fixtures:

(venv) pythn3 manage.py loaddata demo

You should create an admin account with which to login initially.

(venv) python3 manage.py createsuperuser

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.