Git Product home page Git Product logo

eds6397's Introduction

EDS6397 Project Setup Guide

This guide provides detailed instructions on how to set up the EDS6397 project on your local machine. The project is built using Django, a high-level Python web framework.

Prerequisites

Before you begin, ensure you have Python installed on your system. Python 3.6 or newer is required. You can download Python from https://www.python.org/downloads/.

Installation Steps

1. Clone the Repository

First, clone the repository to your local machine using the following command:

git clone https://github.com/Po4991212/EDS6397.git
cd EDS6397

2. Set up a Virtual Environment

It's recommended to use a virtual environment to avoid conflicts with other Python projects. If you don't have virtualenv installed, you can install it using pip:

pip install virtualenv

Then, create and activate a virtual environment:

# For Windows command prompt
virtualenv venv ## command line will create a virtual environment named venv
cd venv/Scripts ## change directory to activate virtual environment
activate ## run activate script to activate virtual environment
# For Git Bash
source venv/bin/activate # On Windows use venv\Scripts\activate

3. Install Dependencies

With the virtual environment activated, install the project dependencies:

pip install -r requirements.txt

4. Initialize the Database

This project uses Django's default SQLite database. Initialize the database with the following commands:

python manage.py makemigrations
python manage.py migrate

5. Create a Superuser

To access the admin panel, create a superuser:

python manage.py createsuperuser

Follow the prompts to create the superuser account.

6. Run the Server

Finally, you can run the development server:

python manage.py runserver

The server will start at http://127.0.0.1:8000/. You can now access the application in your web browser.

Basic git commands

Pulling changes from a remote repository (suggested before you work on the project)

git pull REMOTE-NAME BRANCH-NAME
# Grabs online updates and merges them with your local work

Pushing commits to a remote repository

git push REMOTE-NAME BRANCH-NAME

eds6397's People

Contributors

po4991212 avatar

Watchers

 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.