- Responsive Design
-
Create an AWS Account:
- If you don't have an AWS account, sign up for one at AWS Console.
-
Access AWS Console:
- Log in to the AWS Management Console.
-
Navigate to EC2 Dashboard:
- In the AWS Management Console, navigate to the "EC2 Dashboard."
-
Launch an Instance:
- Click on "Launch Instance" to create a new EC2 instance.
-
Choose an Amazon Machine Image (AMI):
- Select an Ubuntu Server AMI (choose the latest Ubuntu LTS version).
-
Choose an Instance Type:
- Select the "t2.medium" instance type from the list.
-
Configure Instance:
- In the "Configure Instance Details" section, you can leave most settings as default.
- Optionally, you can configure details like IAM role, user data, etc.
-
Add Storage:
- In the "Add Storage" section, set the storage size to 20 GB.
-
Add Tags (Optional):
- Add any tags you want to help identify your instance.
-
Configure Security Group:
-
- If there isn't an existing rule for your application, add a new rule to allow TCP traffic for your application's port (e.g., 5000).
- Type: Custom TCP Rule
- Add Port : 8080 (or the port your application uses)
- Source: 0.0.0.0/0 (Allow traffic from anywhere)
- Review and Launch:
- Review your instance configuration and click "Launch."
- Create a Key Pair:
- Choose an existing key pair or create a new one. This key pair is essential for SSH access to your instance.
- Launch Instance:
- Click "Launch Instance."
- Access Your EC2 Instance:
- Once the instance is running, use the generated key pair to SSH into your instance. Example:
ssh -i /path/to/your/key.pem ubuntu@your-instance-ip
- get your api key from https://ai.google.dev/pricing
Make sure you have installed all of the following prerequisites on your development machine:
- Node Js & Npm Download and Install
- MongoDB Download and Install
- Git Download and Install
This project is developed and tested using the following versions of Node.js and npm:
- Node.js: 18.16.1
- npm: 9.51.1
-
Install NVM as your regular user:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
-
Load NVM into the shell:
source ~/.nvm/nvm.sh
-
Install the desired Node.js version:
nvm install 18.16.1
nvm install 9.5.1
-
Create MongoDB Atlas Account:
- Go to MongoDB Atlas and sign up for an account.
-
Create a New Cluster:
- Once logged in, click on "Build a Cluster" to create a new MongoDB cluster.
-
Configure Cluster:
- Follow the on-screen instructions to configure your cluster. Choose your preferred cloud provider, region, and other settings.
-
Database Access:
- In the left sidebar, navigate to "Database Access" under the Security section. Create a new database user and remember the credentials.
-
Network Access (Whitelist IP Address):
- In the left sidebar, navigate to "Network Access" under the Security section.
- Click on "Add IP Address" and add your current IP address to allow your local development environment to connect to the database.
- Optionally, you can set "0.0.0.0/0" to allow connections from any IP address , but this is less secure or set you specfic ip.
-
Connect to Your Cluster:
- In the left sidebar, click on "Clusters" and then on your cluster's "Connect" button.
- Choose "Connect Your Application" and copy the connection string.
To run this project, you will need to add the following environment variables to your .env file in server directory
PORT
= 5000
MONGO_URL
SITE_URL
JWT_PRIVATE_KEY
GEMINI_API_KEY
MAIL_EMAIL
MAIL_SECRET
MAIL_SERVICE
MONITOR_EMAIL
CC_EMAIL
RECAPTCHA_SECRET_KEY
# Get from google RECAPTCHA SECRET KEY
To run this project, you will need to add the following environment variables to your .env.local file in client directory
VITE_CLIENT_ID
#Google login api client id
VITE_SITE_KEY
## Get from google RECAPTCHA SITE KEY
Clone the project
git clone https://github.com/bayesianinstitute/resume_engine.git
##To Start BackEnd
Go to the server directory
cd server
Install dependencies
npm install
Start
npm start
##To Start FrontEnd
cd resume
npm install
npm run build
cp -r dist ../server
Start
npm run preview