Skip to content

Commit 2de324b

Browse files
add requirement
2 parents ae844ee + 9abbe76 commit 2de324b

File tree

5 files changed

+7517
-11
lines changed

5 files changed

+7517
-11
lines changed

.github/workflows/django.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Django CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
max-parallel: 4
15+
matrix:
16+
python-version: [3.7, 3.8, 3.9]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install Dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
- name: Run Tests
29+
run: |
30+
python manage.py test

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# ticket_tracker_api
22
Serves as a back-end of concert ticket price tracking based on Ticketmaster real-time best seats.
3+
4+
### Installation
5+
- You must have preinstalled Node.js.
6+
- Run `install.sh` to install all required dependencies.
7+
- If __node-canvas__ in `node_modules` fails to install, please check if you have the correct prerequisite softwares installed on your machine. The detail can be found at https://github.com/Automattic/node-canvas/wiki#installation-guides based on your system.

install.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
# install python dependencies
4+
pipenv install
5+
6+
# check nodejs
7+
node --version
8+
9+
# check canvas install prerequisites
10+
# sudo yum install gcc-c++ cairo-devel libjpeg-turbo-devel pango-devel giflib-devel
11+
12+
# install node_modules
13+
npm --prefix ticketscraping/js ci

0 commit comments

Comments
 (0)