Skip to content

K-1303/Medware

Repository files navigation

Project Setup Instructions

Setup PostgreSQL Database and .env File

  1. Setup your PostgreSQL database and create a .env file:
    • Create a file called .env in your project's root directory.

    • Add the following lines to the .env file, replacing the placeholders with your actual database credentials:

      USER = <Postgres_Username>
      DATABASE_NAME = <Database_Name>
      PASS = <Password>
      

Install Python Dependencies

  1. Run the following command to install the required Python dependencies:

pip install -r requirements.txt

Database Migrations

  1. Run the following command to create database migration files based on your Django models:

python manage.py makemigrations

  1. Run the following command to apply the migrations and create the necessary tables in the database:

python manage.py migrate

Frontend Setup

  1. Change directory to the frontend folder:

cd frontend

  1. Run the following command to install the required frontend dependencies:

npm install

npm run build

Run Server

  1. Run the following commands to run the server:

cd ..

python manage.py runserver

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •