Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Web App Documentation

Overview

This documentation provides instructions for setting up and running the Library Web App. It covers the required environment, installation of dependencies, database migration, and how to run the application.

Environment Requirements

Before you start, ensure that you have Python 3 installed on your local machine. You can download Python from the official Python website.

Creating a Virtual Environment

To create a virtual environment, follow these steps:

  1. In the root project.

  2. Run the following command to create a virtual environment named venv:

    python -m venv venv

Activating the Virtual Environment

Once you have created the virtual environment, activate it using the instructions below.

On macOS/Linux

source venv/bin/activate

On Windows

venv\Scripts\activate

Install Dependencies

Once your virtual environment is activated, install the necessary dependencies for the project. Run the following command:

pip install -r requirements.txt

This command reads the requirements.txt file and installs the required packages.

Move to Project Directory

Makesure you are in src directory.

cd src

Database Migration

After that you'll need to set up your database. Run the following command to apply migrations:

python manage.py migrate

This command creates the necessary database tables and sets up your application’s database schema.

Running the Application

Now that everything is set up, you can run the application. Use the following command:

python manage.py runserver

The server will start, and you should see output indicating that the development server is running. You can access the application by navigating to http://127.0.0.1:8000/ in your web browser.

About

A Library Web App build with Django

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages