This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@NgModule({ | |
declarations: [ | |
AppComponent, | |
], | |
imports: [ | |
HighchartsChartModule, | |
CommonModuleModule, | |
CoreModuleModule, | |
SidebarModulesModule, | |
BrowserModule, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useState, useEffect } from "react"; | |
import axios from "axios"; | |
/* API: https://swapi.dev/api/vehicles?format=json */ | |
export const ListOfVehicles = (): JSX.Element => { | |
const [data, setData] = useState<any>([]); | |
const [data2, setData2] = useState<any>([]); | |
useEffect(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from "react"; | |
import axios from "axios"; | |
type Data = { | |
created_at?: string; | |
title?: string; | |
url?: string; | |
author?: string; | |
points?: number; | |
story_text?: null | string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import uvicorn | |
from pymongo import MongoClient | |
from fastapi import FastAPI, File, UploadFile | |
from fastapi.middleware.cors import CORSMiddleware | |
from fastapi.encoders import jsonable_encoder | |
from motor.motor_asyncio import AsyncIOMotorClient | |
@app.post("/resume") | |
async def receive_file(file: UploadFile = File(...)): | |
resume_file = jsonable_encoder(file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI | |
import uvicorn | |
from motor.motor_asyncio import AsyncIOMotorClient | |
from config import settings | |
from apps.ResumeParser.routers import router as todo_router | |
app = FastAPI() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
origins = [ | |
"http://localhost:3000", | |
"localhost:3000" | |
] | |
app.add_middleware( | |
CORSMiddleware, | |
allow_origins=origins, | |
allow_credentials=True, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.post("/resume/") | |
async def receive_file(file: UploadFile = File(...)): | |
contents = await file.read() | |
print(contents) | |
print(file.content_type) | |
print(file.filename) | |
return {"filename": file.filename} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI, File, UploadFile | |
from fastapi.middleware.cors import CORSMiddleware | |
app = FastAPI() | |
origins = [ | |
"http://localhost:3000", | |
"localhost:3000" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Typography, Chip } from '@material-ui/core'; | |
import { useChipStyles } from '../../../constants/profileStyles'; | |
import React, { useEffect, useState } from 'react'; | |
import { Loading } from '../../Shared/components/Loading'; | |
import { Candidate } from './types/candidate'; | |
import { useDispatch } from 'react-redux'; | |
import { createAsyncThunk } from '@reduxjs/toolkit'; | |
import { AddSkill, ADD_SKILL, DeleteSkill, DELETE_SKILL } from './actions/skillsAction'; | |
const initialCandidate: Candidate = { |