Skip to content

Latest commit

 

History

History
138 lines (89 loc) · 3.21 KB

File metadata and controls

138 lines (89 loc) · 3.21 KB

SkillEdge-Backend

Backend Hosted link ----->

https://skilledge.herokuapp.com/

Video

Studio_Project.mp4

ScreenShots

RUNNING THE SERVER

  1. Clone the repository:
git clone https://github.com/suhaillahmad/SkillEdge-Backend.git

To run the server, you need to have Python installed on your machine. If you don't have it installed, you can follow the instructions here to install it.

  1. Install, Create and activate a virtual environment:
pip install virtualenv
virtualenv venv

Activate the virtual environment

source venv/bin/activate
  1. Install the dependencies:
pip install -r requirements.txt
  1. Setup .env file in Bulk-Mailer-Backend/bulkmailer
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''

DATABASE_NAME=''
DATABASE_USER=''
DATABASE_PASSWORD=''

CLOUD_NAME: ''
API_KEY: ''
API_SECRET: ''

PUBLIC_KEY = 
SECRET_KEY = 

  1. Create a PostgreSQL database and connect it by entering credentials in .env file, once connected run the migrate command
python manage.py migrate
  1. Run the backend server on localhost:
python manage.py runserver

You can access the endpoints from your web browser following this url

http://127.0.0.1:8000
  1. You can create a superuser executing the following commands
python manage.py createsuperuer

A prompt will appear asking for email followed by password. To access the django admin panel follow this link and login through superuser credentials

http://127.0.0.1:8000/admin/
  1. Start the Celery worker (On a separate terminal with activated virtual environment):
celery -A bulkmailer.celery worker --pool=solo -l info
  1. Run celerybeat (On a separate terminal with activated virtual environment):
celery -A bulkmailer beat -l info

Contributors ----->

https://github.com/suhaillahmad (Suhail Ahmad)

https://github.com/Tech-Shreyansh (Shreyansh Agrawal)