Vantastic+ - An Innovative Learning Platform for Vancouverites and Fans
To get the backend of Vantastic+ up and running, follow these steps:
-
Clone the repository:
git clone https://github.com/Valliuzj/VantasticPlus.git cd vantasticplus cd backend
-
Create the Firebase connection file:
In the backend directory, create a file named firebase.js and also add your Firebase configuration file
-
Create the dotenv file:
In the backend directory, create a .env file and add your environment variables as shown in .env.example
-
Install dependencies:
Navigate to the
backend
directory and run the commandnpm install
to install dependencies. -
Start the server:
Use
nodemon server.js
to start the server.
- Navigate to machine_learning directory
cd.. cd machine_learning
- Install all the packages
pip install requirements.txt
- Start the flask API
python recommendation.py
- If there is versions error
please run
python model.py
to regenerate the model
-
Enter the frontend folder:
cd frontend
-
Create .env.local:
NEXT_PUBLIC_API_BASE_URL= https://your-api-base-url.com
For example:http://localhost:8000
. It should be the same with your backend portal. -
Install dependencies:
npm install
-
Start the server:
Use
npm run dev
to start the server.