Skip to content

ShipSolver/ShipSolver-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HOW TO START SERVER

# in root

export PYTHONPATH=.
# have a venv in /servers
# pip install requirements in tenant

docker-compose up -d # in /servers

# change line in models/__init__.py  postgres_c -> localhost (dont commit this change)

./load_data.sh # load fixtures

python3 tenant/server.py # start server

# place env file in dev-tools

Docker Environment Setup

Install docker and docker-compose so you can run the services locally.

Deprecated

Starting a Local Celery Cluster

Always pull new changes with

git pull

Give the script execution permission initially

chmod +x start-cluster.sh

Start the cluster as follows:

./start-cluster.sh

To kill the cluster:

./kill-cluster.sh

Ensure you run these scripts in the root project directory.

Using the API

API calls can be made to localhost:5000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages