Set up conda env (we need to use a little python to get youtube transcripts)
- First install conda or miniconda if you haven't already \
- Create the conda environment:
conda create --name YoutubeSummarizer
- Install needed packages (there's only one as of now):
conda install -c conda-forge youtube-transcript-api
- The conda environment is now set up!
- Now we install node.js dependencies:
npm install
(make sure you're in backend directory) - Set up needed environment variables:
You will need to create a file called.env
in the backend directory that will hold needed environment variables, the file should look like the following block of codePORT=4000 JWT_SECRET=(ask one of us to send it to you) ENCRYPTION_SECRET=(ask one of us to send it to you) MONG_URI=(this is the url used to connect to the MongoDB atlas database, you will need one of us to set up an account for you and to provide you with an access link)
conda activate YoutubeSummarizer
npm start
- TODO explain JWTs and how they are used in this application to handle logging in & out
- all routes aside from the login and register routes require authentication
- TODO
- Fetch all summaries from user
- GET
localhost:PORT/api/summaries/fetchSummaries
- GET
- TODO for the routes that need a body, put a code block with an example of it