This is the Backend for spatial
- Node.js (v14 or higher)
- NPM or Yarn package manager
- Docker installed if you wish to containerize the application
Clone the repository to your local machine:
git clone https://github.com/mobile-cloud-computing/spatial-ntsCreate and activate environment Variable:
python3 -m venv spatial_env
source spatial_env/bin/activateChange directory to the cloned repository:
cd spatial-ntsCheckout the feature branch:
git checkout authenticationInstall the necessary dependencies:
npm installor if you're using Yarn:
yarn installInstall python requirements:
cd src/server/deep-learning
pip install -r requirements.txtBefore running Spatial, you need to set up the following environment variables. Create a .env file in the root directory
R
SERVER_HOST=0.0.0.0
SERVER_PORT=31057
MODE=APIStart the development server:
npm startor with Yarn:
yarn startTo build a Docker image of Spatial, run:
sudo docker-compose buildTo run Spatial Frontend as a Docker container:
sudo docker-compose upSpatial backend will now be accessible at http://localhost:31057/.
We welcome contributions to this project. Please follow these steps:
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature/Feature). - Make changes and commit them (
git commit -m 'Add some Feature'). - Push to the branch (
git push origin feature/Feature). - Open a Pull Request.#spatial-nts