-
-
Notifications
You must be signed in to change notification settings - Fork 7
Installation
Nilanchala edited this page Oct 22, 2023
·
3 revisions
Checkout the code from our git repository
git clone [email protected]:StackTipsLab/bloggy.git
Create a virtual env
python3 -m venv .venv
source .venv/bin/activate
Install python dependencies
pip3 install -r requirements.txt
Rename the .env.example
file to .env
and provide all te configurations details including Database, Email Configurations. Bare minimum, you will need these properties to get started.
SECRET_KEY=
DEBUG=True
ALLOWED_HOSTS=127.0.0.1,localhost
DEVELOPMENT_MODE=True
# Your database configuration details
DB_NAME=bloggy
DB_USER=root
DB_PASSWORD=password
DB_HOST=127.0.0.1
DB_PORT=3306
Create and apply database migrations
python3 manage.py makemigrations
python3 manage.py migrate
Create superuser
python3 manage.py createsuperuser
Collect static files before publishing or development.
python3 manage.py collectstatic
Start the application
python3 manage.py runserver
For building frontend code, you will need the following node version.
node -v
v12.22.12
npm -v
6.14.16
Once you have the above node version installed, install node dependencies using the following command.
npm install
Now, you can build
npm run start
npm run build # to generate production build