GitHunt
MP

mpessini/wall-backend

WALL APP - BACKEND

About

Wall

In this project, users can create a new account, sign in or enter as a visitor. Users can create a post on a wall if they are logged, or just read the posts, if they aren't.
This project was built using Django, Django Rest Framework and JWT.

Installation

To run this application, open the terminal in any directory of your choice and run the commands below:

  1. Clone the project
git clone git@github.com:mpessini/wall-backend.git
  1. Enter in project directory
cd wall-backend
  1. Create a virtual environment
python3 -m venv env
  1. Active the virtual environment
  • Linux/MacOs
source env/bin/activate
  • Windows
env\Scripts\activate
  1. Install project requirements
pip install -r requirements.txt
  1. Create your environment file using .env.example as an example
  • The .env.exemple was configured to send email only on console, if you want to send real emails, change EMAIL_BACKEND value to django.core.mail.backends.smtp.EmailBackend
  1. Create project migrations
python manage.py makemigrations
python manage.py migrate
  1. Run the project
python manage.py runserver

Tests

  • To run tests, you need to run the command below
python manage.py test

Contacts

Thank you TSL

  • This was my first time using Django, I enjoyed learning about this technology.

Languages

Python91.3%Jinja8.7%

Contributors

Created August 29, 2022
Updated August 29, 2022