/Backend

Primary LanguagePythonApache License 2.0Apache-2.0

CodeDigger Backend

Contributors Forks Stargazers Issues Apache License LinkedIn Contributor Covenant

Features

Setting Environment First Time

Below commands will setup the environment for the first time.

Windows

py -m pip install --user virtualenv
py -m venv env

Linux

python3 -m pip install --user virtualenv
python3 -m venv env

This project uses MySQL database , first you have to setup MySQL database.

Download XAMPP from [here](https://www.apachefriends.org/download.html)
Start MySQL server.

Starting Virtual Env. and Setting up the Project

Below are the commands for project Initialization into your local computer

For Windows

. env/Scripts/activate -- If using gitbash
. env\Scripts\activate -- If using Windows Powershell
pip install -r requirements.txt
cd codedigger
py manage.py migrate
py manage.py runserver
  • This would start the development server

For Linux

source env/bin/activate
pip3 install -r requirements.txt
cd codedigger
python3 manage.py migrate
python3 manage.py runserver
  • This would start the development server

Leaving the virtual environment

deactivate

To update requirements file

pip freeze > requirements.txt

License

Copyright 2021 Codedigger

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contact

Codediger - contact.codedigger@gmail.com

Project Link: https://github.com/Code-dig-ger/Backend