Skip to content

Latest commit

 

History

History
77 lines (48 loc) · 1.51 KB

README.md

File metadata and controls

77 lines (48 loc) · 1.51 KB

MayImmo

This is the backend of a Real Estate MLS for Mayotte Island. The project is done using :

  • Python
  • Django DRF
  • Geopandas
  • Pandas
  • Faker

Configure the virtual environment

Create a new environment virtualenv

Create a virutal environment using virtualenv.

python3 -m venv venv

Entering the environment

source venv/bin/activate

Installation of package listed in requirement.txt

Use the package manager pip to install the dependencies.

pip3 install -r requirements.txt

Steps when running the program for the first time.

In order to run the backend program, you should follow the steps described below. All commands are run from the root folder.

Refreshing migrations

python manage.py makemigrations

Applying migrations

python manage.py migrate

Import a sample database from CSV

python manage.py importdb

Run the program

After the database is populated and correctly setup, you can run the backend server by executing the following command :

python manage.py runserver

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

API doc

The documentation of the public API is available under doc folder : API.md

License

MIT