-
Notifications
You must be signed in to change notification settings - Fork 1
Development
Zasaimster edited this page Dec 8, 2023
·
5 revisions
In order to work on ByteSize Insights locally, be sure to check the information on our project's README.
There is a section that discusses the necessary information for installing the service. Additionally, there are documented instructions for developing the frontend, backend, and lambda function.
The Next.js frontend is deployed on Vercel. The following steps can be followed to deploy it:
- Create an account at https://vercel.com/
- Create a new project. Give it a relevant title like "bytesize-insights-frontend"
- Select "Import Git Repository" and select GitHub. This will prompt you to sign in with your GitHub account and grant permissions to Vercel in your repository.
- Once Vercel has permissions to your GitHub account, select this repository. You may need to fork this repository so that Vercel can access a version of it on your GitHub account.
- Under "Framework Preset" select "Next.js". Set the root directory to frontend/byte-size
- The default build and output settings can be used. Click deploy and view your hosted frontend! Here is an example of what the deployed frontend should look like.
The FastAPI backend is also deployed on Vercel. The following steps can be followed to deploy it:
- Navigate to you Vercel account and create a new project. Give it a relevant title like "bytesize-insights-backend"
- Your GitHub account should already be linked to Vercel. Select this repository from the list of repositories.
- Under "Framework Preset" select "Other". Set the root directory to backend/
- Configure the build settings to run python main.py. Click deploy and try out your hosted backend API!