Summer ASL translator project
- Python 3.6 or above
- Node 16 or above
Make a copy of the .env.sample
files present in the server
folder and name it as .env
.
Replace the content with your appropriate values.
The .env
file in the server
folder will contain the database url and the secret key for the JWT token. The secret key for the JWT token can be left unchanged for development purposes, but the database url will need to be changed. Instructions for creating a database url with MongoDB Cloud be are given below. You may also need to change the FLASK_HOST
key to be 0.0.0.0
if you are running the mobile app on a physical device on the same network.
Depending on your Python install, you may need to use python3
and pip3
instead of python
and pip
respectively.
-
To run the Flask server:
Change directory to the server folder:cd server
Create a venv in the server folder:python -m venv venv
Activate the virtual environment
Install the dependencies:pip install -r requirements.txt
Run the server:python app.py
-
To run the ReactJS client:
Change directory to the client folder:cd web
andcd main_app
Install the dependencies:npm i
Run the application:npm start
- Go to MongoDB Atlas and create an account.
- Create a new project and a new cluster.
- Create a new database named whatever you want.
- Click on the connect button and select the appropriate options. (Note: when replacing
<password>
, make sure to use your user password and not your account password) - Copy the connection string and paste it into the
MONGO_URI
key in the.env
file in theserver
folder. - Set the
MONGO_DB_NAME
in the.env
file in theserver
folder to the name of the database you created in step 3.