Skip to content

Commit

Permalink
change 1
Browse files Browse the repository at this point in the history
  • Loading branch information
gjain-7 committed Jun 3, 2023
1 parent 8c33898 commit 76ed0a4
Show file tree
Hide file tree
Showing 323 changed files with 71 additions and 3,921 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__pycache__
migrations
db.sqlite3
.env
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
__pycache__
migrations

.env
.vscode
db.sqlite3
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

6 changes: 4 additions & 2 deletions messWebsite/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ ENV PYTHONUNBUFFERED 1

WORKDIR /app

ADD . /app

COPY ./requirements.txt /app/requirements.txt

RUN pip install -r requirements.txt

COPY . /app

# RUN chmod +x /app/entrypoint.sh

# Set the entrypoint to the entrypoint.sh script
ENTRYPOINT ["/app/entrypoint.sh"]
42 changes: 32 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
# Mess-Website
# Mess Website - Website for Dining Facility at IIT Indore
A Django-based software project that simplifies the process of applying for rebates by students.

Website for Dining Facility at IIT Indore
## Features
- Automated rebate rule checks
- Student information access
- Admin allocation
- Email notifications
- Billing automation

Note to Developers <br>
Clone the repository using git clone https://github.com/DaemonLab/Mess-Website.git <br>
Install Python 3.7 Or Higher <br>
Install Django cmd - pip install django <br>
Install all dependencies cmd - pip install –-user -r requirements.txt <br>
Finally run cmd - python manage.py runserver <br>
Ongoing development of additional features ...

## Note to Developers

SQLite is as the default database during development. <br>
Read the Documentaions on index.html present in /docs/_build/html/index.html
### Setup
- Clone the repository
```shell
$ git clone https://github.com/DaemonLab/Mess-Website.git
```
- Install Python 3.7 Or Higher
- Install Django
```shell
$ pip install django
```
- Install all dependencies
```shell
$ pip install –-user -r requirements.txt
```
- Finally run
```shell
$ python manage.py runserver
```
_Note:_ SQLite is as the default database during development

### Documentation
Read the Documentaions on `/docs/_build/html/index.html`
File renamed without changes.
Binary file added db/db.sqlite3
Binary file not shown.
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3'

services:
web:
build: .
ports:
- 8000:8000
volumes:
- ./db/db.sqlite3:/app/db.sqlite3
env_file:
- ./.env
11 changes: 11 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
set -e

# Apply database migrations
python manage.py migrate

# Collect static files
python manage.py collectstatic --noinput

# Start the Django development server
python manage.py runserver 0.0.0.0:8000
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 0 additions & 3 deletions messWebsite/.gitignore

This file was deleted.

File renamed without changes.
File renamed without changes.
18 changes: 0 additions & 18 deletions messWebsite/docker-compose.yml

This file was deleted.

Binary file removed messWebsite/home/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file removed messWebsite/home/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file removed messWebsite/home/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file removed messWebsite/home/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file removed messWebsite/home/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file removed messWebsite/home/__pycache__/views.cpython-310.pyc
Binary file not shown.
256 changes: 0 additions & 256 deletions messWebsite/home/migrations/0001_initial.py

This file was deleted.

Loading

0 comments on commit 76ed0a4

Please sign in to comment.