Skip to content

SalvoAcqua/SwapMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

SWAPMAP ๐Ÿช„๐Ÿ‘•

SWAPMAP is a mobile application that facilitates organizing meetings in public places to swap clothes in order to prolong the lifecycle of used clothes, protecting the environment and helping people make more sustainable and economic choices.

How to run the application:

# client - first terminal
cd client ; npm install ; npx expo start -w

# server - second terminal
## windows
cd server ; venv\Scripts\activate ; pip install -r requirements.txt ; flask --app server run

## mac-os/linux
cd server ; source venv/bin/activate ; pip install -r requirements.txt ; flask --app server run

# venv\Scripts\activate (windows) or source venv/bin/activate (unix-like OS)
# is necessary to activate a virtual environment (safe zone to run code)
# You can use python3 server.py instead of flask --app server run to automatically refresh the server side when you are coding 

How to create the virtual environment for the server side:

# server (windows/mac-os/linux)
cd server ; python3 -m venv venv

# python -m venv venv instead creates a new virtual environment
# and it is not necessary to run it again after the first time.

To deactivate the virtual environment, run:

# 'server' terminal
deactivate

To update the requirements (libraries) needed for the python application, run (before the commit):

pip freeze > requirements.txt

To initialize the database, into the server virtual environment:

python _initDb.py

Technologies used

Client

React Native libraries to implement the frontend.

Palette

Link to the palette

Server

Python Flask to develop the server.

About

Human Computer Interaction Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors