Skip to content

Web-based CMS for sharing your experiences from restaurants.

License

Notifications You must be signed in to change notification settings

praszuk/GdzieJedzonko

Repository files navigation

logo

Backend tests badge Frontend build badge

Table of Contents

You're sections headers will be used to reference location of destination.


Description

Portal for sharing your experiences from restaurants, bars and other gastronomy facilities visited by you and others. Application is equipped with interactive map and markers for easier searching places in your area. Users can also search, browse and comment reviews of other users. Moderators have access to all the reviews with the ability to accept, reject, delete and edit them. Admin of the portal have dedicated view for managing users and all above.

NOTE: All of UI is written in Polish!

Technologies

  • Django
  • Angular 8
  • Docker
  • PostgreSQL

Images

Main map

Main articles

Article

Article photos

Article comments

Admin panel

How To Use

Application uses docker compose for easy and quick setup. Follow those simple steps.

Installation

Create .env file in the root of the project directory and fill with your credential as below:

SECRET_KEY=<secret key for web app>
BACKEND_ALLOWED_HOST=<domain/ip>
POSTGRES_HOST=db
POSTGRES_PORT=5432
POSTGRES_DB=<postgres db>
POSTGRES_USER=<postgres user>
POSTGRES_PASSWORD=<postgres password>
USER_AGENT_API=<Agent to get location data from Nominatim>

Run production:

PORT=80 docker-compose -f docker-compose-prod.yml -p prod up -d

Run release (auto merge front end and back end):

PORT=6789 docker-compose -f docker-compose-prod.yml -p dev up -d

Run development:

docker-compose -f docker-compose-dev.yml up -d

Create Admin account

Get into web container.

docker exec -it prod_backend_1 bash

Run django shell

python manage.py shell

Create admin object

from users.models import User, Role
admin = User.objects.create_user(email='[email protected]', password='admin1234', first_name='Admin', last_name='Admin', birth_date='1990-03-11', role=Role.ADMIN)

exit()

License

MIT

Back To The Top