https://github.com/cicorias/njit-is601-project
https://github.com/cicorias/njit-is601-project
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cicorias/njit-is601-project
- Owner: cicorias
- License: other
- Created: 2020-06-01T00:30:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-22T19:31:14.000Z (over 3 years ago)
- Last Synced: 2025-03-28T19:54:48.718Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 1.07 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Project for IS 601 - Summer 2020
The project can run from a local virtual environment, managed by Poetry, or via a Docker container with docker-compose.When running in the container the Database used is Postgres.
## Getting the code
Clone the repo```
git clone https://github.com/cicorias/njit-is601-project
cd ./njit-is601-project
```At this point you're in the root of the git repository, You need to change to the folder `surveysite` for the rest of the work.
```
cd ./surveysite
```Once here you should see something like the following:
```
total 496
-rw-r--r-- 1 cicorias staff 147B Jul 25 11:43 Dockerfile
-rw-r--r-- 1 cicorias staff 802B Jul 25 13:54 data-dump.json
-rw-r--r-- 1 cicorias staff 180K Jul 25 12:48 db.sqlite3
-rw-r--r-- 1 cicorias staff 454B Jul 25 12:28 docker-compose.yml
-rwxr-xr-x 1 cicorias staff 902B Jul 25 13:56 first-run.sh
-rwxr-xr-x 1 cicorias staff 856B Jul 25 12:29 manage.py
-rw-r--r-- 1 cicorias staff 25K Jul 15 13:24 poetry.lock
-rw-r--r-- 1 cicorias staff 467B Jul 15 13:24 pyproject.toml
-rw-r--r-- 1 cicorias staff 445B Jul 25 11:42 requirements.txt
drwxr-xr-x 15 cicorias staff 480B Jul 24 22:04 survey
drwxr-xr-x 9 cicorias staff 288B Jul 25 12:31 surveysite```
## Starting from container
>Note: you must have Docker that supports docker-compose to run. This has been tested with latest Docker for desktop on MacOS.From the `./njit-is601-project/surveysite` directory:
```
# launch the config in the background
docker-compose up --build -d# now run the seed and setup
# this command sets up a username and password of 'root' with 'password' ....
./first-run.sh```
> Note: this should open browser page tothe site, but if it doesn't navigate to:
http://localhost:8000/survey/