Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quimpm/web_project
https://github.com/quimpm/web_project
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/quimpm/web_project
- Owner: quimpm
- License: gpl-3.0
- Created: 2020-02-24T10:09:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T05:23:02.000Z (almost 2 years ago)
- Last Synced: 2023-03-07T02:02:16.777Z (over 1 year ago)
- Language: Python
- Size: 5.85 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vibely
This web app tries to bring together bands and establishments that wants to make an event of music
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
### Prerequisites
You will need to have installed docker and docker-compose. To know if this is working properly use
`docker run hello-world` and `docker-compose --version`. To get them installed properly at your OS,
refer to the oficial pages of docker and use:
```
python3 -m pip install docker-compose
```### Installing
Copy '.env.example' to file named '.env'. Then change the variable `DJANGO_SECRET_KEY=[key]`
to a value generated. For example, using [this site](https://miniwebtool.com/django-secret-key-generator/).So the contents of .env should be:
```
#Django configurationOPEN_PORT=8000
DJANGO_PORT=8000DJANGO_SECRET_KEY=
DJANGO_DEBUG=1
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1] 0.0.0.0POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_NAME=postgresDATABASE_URL=postgres://postgres:postgres@db:5432/postgres
#DATABASE_URL=postgres://USER:PASSWORD@HOST:PORT/NAME
```Then apply the changes to you database using:
```
docker-compose exec web python3 manage.py makemigrations
docker-compose exec web python3 manage.py migrate
```To create a super user, use:
`docker-compose exec web python3 manage.py createsuperuser`Then use `docker-compose up -d` to get it running. Connect to `localhost:8000/admin`
to see the admin login pageTo stop it, use `docker-compose down`
## Running the tests
To execute all tests, use `docker-compose exec web python3 manage.py test apps`
### Test Structure
Tests are in these format:
```
apps
| ...
| tests
| __init__.py
| test_.py
```So we ensure that all tests are discovered and tests are separated for diferent
functionalities, as models, views or templates.### Test names
All tests must be using a class derived from TestCase (or derived from it). Also,
all methods that test must begin with test, so manage.py does properly discover them.## Deployment
Master branch is deployed in CI/CD at [this site](https://vibely-udl.herokuapp.com/admin/)
## Built With
* [Django](https://www.djangoproject.com/) - The web framework used.
* [Docker](https://www.docker.com/) - Container management.
* [Heroku](https://www.heroku.com/) - Cloud Application Platform.
* [PostgreSQL](https://www.postgresql.org/) - Open Source Database.
* [Travis](https://travis-ci.org/) - Test CI.
* [Crispy forms](https://django-crispy-forms.readthedocs.io/en/latest/) - For more crispy forms.
* [Bootstrap 4](https://getbootstrap.com/) - A pretty css.## Authors
* Pau Ibáñez Millán
* Joan Martí Olivart
* Ian Palacín Aliana
* Joaquim Picó Mora
* Sergi Simón Balcells## License
This project is licensed under the GPLv3 License - see the [LICENSE](LICENSE) file for details