This API is built out with Typescript, Node Js, Express and MySQL, for handling VIT's FFCS needs.
790
By: Jonathan Rufus Samuel - 20BCT0332
Solution for Problem Statements for VIT (2023 Batch) - Dyte
This Project pertains to the 1st round of Dyte's on Campus Recruitments for VIT Vellore, for the year 2023. In short, this project is a backend with Typescript, Node Js, Express and MySQL, with its primary functionality in being able to handle API calls pertaining to VIT's FFCS System for handling course registration amongst its students.
Cloud General Access Link: (Please edit CORS as required to use) Unable to Deploy due to private nature of GitHub repo on 3rd part cloud service providers like Heroku and Render. Will update later on status of General Access Link as required
Key Features:
Important:
Built with the following tech stack:
To get a local copy up and running follow these simple example steps:
Install npm using the following command:
npm install npm@latest -g
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.
Clone the repo
https://github.com/JRS296/FFCS-TypeScript-API.git
Install NPM packages
npm install
Configure CORS as required to establish connection with frontend as required by CORS policy.
app.use(cors({ origin: "https://dyte-hiring-docs.pages.dev" })); //Cors origin ID
Configure MySQL on local machine. Go to ./MySQL/config.ts and configure data as required. Here is an example from the config.ts file that comes by default with this repository.
const connection = new Sequelize({ dialect: "mysql", host: "localhost", username: "root", password: "123456", database: "ffcs", port: 3307,
logging: false, models: [Faculty, Student, Course, RegCourses, Timings, StudentTimetable], });
Set up Postman, or any other API testing tool to interact with the Backend. You can also interact with the API directly through this link:
And Remember,

Results of Python Environment Based Testing: (Link: https://github.com/dyte-submissions/vit-hiring-2023-phase1-test)
Testing: SUCCESSFULL
Results of Jest Unit API Testing: (Link: https://jestjs.io/docs/getting-started)
Testing: Unsuccessful - Was unable to properly configure Jest for typescript environment, along with lack of time to modularize modules for UNIT tests. Can implement it in due time if required.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Distributed under the MIT License. See LICENSE.txt for more information.
Jonathan Rufus Samuel - [email protected]
Project Link: https://github.com/dyte-submissions/vit-hiring-2023-phase-1-JRS296
I'd like to take some time out to thank Dyte for the opportunity to attempt this test, had an amazing time brainstorming and figuring out a solution to the problem at hand. :)
Content type
Image
Digest
sha256:11206e155…
Size
363.6 MB
Last updated
over 3 years ago
docker pull jrs296/ffcs_api_image