-
Notifications
You must be signed in to change notification settings - Fork 1
Windows 10 Installation Guide
- Python 3.7+
- PostgreSQL 12
- npm 6.13+
Clone the repository
git clone git@github.com:comp195/Spring2020Project-vibecheck.git
Install pipenv
pip install pipenv
Change to the directory containing Pipfile
and run
pipenv install --dev
Activate the virtualenv
pipenv shell
Navigate to the project
directory and open settings.py
in a text editor
Modify the following code to match your PostgreSQL credentials that you inputted when installing PostgreSQL
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'vibecheck',
'USER': 'vibecheck',
'PASSWORD': 'password',
'HOST': 'localhost',
'PORT': '',
}
}
Open psql
(located in your start menu or in the PostgreSQL installation directory) and login
After authenticating, create the database using
CREATE DATABASE vibecheck;
Create a new user named vibecheck
CREATE USER vibecheck WITH PASSWORD 'password';
Grant permissions
GRANT ALL PRIVILEGES ON DATABASE vibecheck TO vibecheck;
Exit psql
and navigate to the directory containing manage.py
and run
python manage.py migrate
Change to the directory containing package.json
and run
npm install
Run webpack with
npm run dev
Open up a new terminal and change to the directory containing manage.py
and run
python manage.py runserver
Visit http://127.0.0.1:8000/ to verify that the server is running