Skip to content

pradumangoyal/ecircdb-backend

 
 

Repository files navigation

ecircdb-backend

Backend for the ecircdb

Setup on your local machine

  1. Clone the Repository
$ git clone https://github.com/EnsemblGSOC/ecircdb-backend.git ecircdb-backend
$ cd ecircdb-backend
  1. Make virtual environment setup
$ pip install virtualenv
$ virtualenv -p python3 <env_name>
  1. Activate your environment
$ source <env_name>/bin/activate
  1. Install libmysqlclient

For example on Debian/Ubuntu you must install the package:

sudo apt-get install libmysqlclient-dev

For recent versions of debian/ubuntu (as of 2018) it is:

sudo apt install default-libmysqlclient-dev
  1. Install requirements
$ pip install -r requirement.txt
  1. Create a MySQL user and database normally, remember the name of the database and credentials for the user
  2. Configure the .env file for the project, you can clone the available .en.stencil file to checkout the format for .env file
$ cp .env.stencil .env
  1. Fill out the database name, user, password in the .env file, you can specify the host and port for the database optionally
  2. Migrate Files
$ python manage.py makemigrations
$ python manage.py migrate
  1. Create a superuser
$ python manage.py createsuperuser
  1. Start the server
$ python manage.py runserver
  1. Visit localhost:8000/control and login using the account created in above step. This is the admin panel from where data can be added, deleted or modified.
  2. Check other urls from the list at localhost:8000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.4%
  • Shell 5.6%