CodeLingual

所属分类:机器翻译
开发工具:JavaScript
文件大小:239KB
下载次数:0
上传日期:2021-05-12 06:05:06
上 传 者sh-1993
说明:  创建了一个web应用程序,通过从...翻译标准函数来帮助个人快速学习编程基础知识...
(A web application created to help individuals quickly learn programming basics by translating standard functions from one language to another. (Think Google Translate, but for code!))

文件列表:
.env.example (300, 2021-05-11)
client (0, 2021-05-11)
client\package-lock.json (724668, 2021-05-11)
client\package.json (2415, 2021-05-11)
client\public (0, 2021-05-11)
client\public\favicon.ico (3870, 2021-05-11)
client\public\index.html (542, 2021-05-11)
client\src (0, 2021-05-11)
client\src\App.js (1024, 2021-05-11)
client\src\Functions (0, 2021-05-11)
client\src\Functions\Functions.js (136, 2021-05-11)
client\src\UI (0, 2021-05-11)
client\src\UI\Modal (0, 2021-05-11)
client\src\UI\Modal\Modal.js (745, 2021-05-11)
client\src\UI\Modal\Modal.styles.js (461, 2021-05-11)
client\src\components (0, 2021-05-11)
client\src\components\AboutUs (0, 2021-05-11)
client\src\components\AboutUs\AboutUs.js (97, 2021-05-11)
client\src\components\Auth (0, 2021-05-11)
client\src\components\Auth\AdminSignIn (0, 2021-05-11)
client\src\components\Auth\AdminSignIn\AdminSignIn.js (1419, 2021-05-11)
client\src\components\Auth\AdminSignIn\AdminSignInSchema.js (1515, 2021-05-11)
client\src\components\Auth\Auth.css (361, 2021-05-11)
client\src\components\Auth\Auth.js (1549, 2021-05-11)
client\src\components\Auth\Sign.css (67, 2021-05-11)
client\src\components\Auth\SignIn (0, 2021-05-11)
client\src\components\Auth\SignIn\SignIn.js (1404, 2021-05-11)
client\src\components\Auth\SignIn\SignInSchema.js (1559, 2021-05-11)
... ...

# CodeLingual: The Programming Language Translator The purpose of this web application is to help individuals quickly learn the basics of new languages by translating standard and common functions from one language to another (so like Google Translate, but for code)! The basic idea: A user would type in the name of a standard function in a language that they know, and the application would return the equivalent function in another language (the desired language). For example, if a user typed in toUpperCase() and selected Java as their source lang, the app would return upper() if Python was selected as their target lang. How it would work: The application would run on both manual translations done by real people, and by automatic translations done with webscraping. (Completing the webscraping part before the project due date wouldn't at all be a priority, though.) Users of the application will be able to add new translations if their results come up blank and they want to contribute, and there will be an option to report translations as well. In terms of MERN architecture: 1. The database would be used to store translations/metadata; 2. Express+Node would be used for back-end work, which will include inserting and retrieving info from the database and webscraping if we get to that part; and 3. React would be for the front-end interface. (IF any of you guys are interested in AI, there's a way we could incorporate that to produce more accurate translations as well.)

HOW TO RUN THE PROJECT

Open up 2 terminals either from VS Code or your preferred terminal. Running the server: We will be using nodemon, a library that automatically restarts nodejs code upon saving, on the server. Run "npm run server" without the quotes in the top directory where server.js is. Server will run on your http://localhost:8080/ Running the client (React): React directory is in the "client" folder. Our client side will have its own package.json and node/modules just like our server side code will. You need to cd into the client folder and run "npm run start" which will start your react app at http://localhost:3000/ I (@Xapollon430) also made a .gitignore file so we can put folders inside it that we dont want pushed. For example .env, 2 different node modules (our client and server side because these folders are too big to push and pull). This means that our dependencies like react, express, mongodb will not be downloaded when you clone the repository, so you have to run "npm install" in the server directory and client directory to get our dependencies so your code works. When you run "npm install" npm will locate the package.json file and read the dependencies inside to see what it needs to download. This is why MERN teams never push or pull node/modules because the package.json will always have a blueprint of what needs to be downloaded on the go.

近期下载者

相关文件


收藏者