GithubHelp home page GithubHelp logo

chemcatalogue's Introduction

Full Stack Web Application

We have 30 chemical compounds with you and their details. Details Include:

  1. Name
  2. Image
  3. Description

A webapp for where anyone can directly look into the compounds and its details. Editing of details also possible in case someone wants to change the information.

Tech stack

Backend - Node.js, Express, Sequelize, MySQL.

Frontend - Angular CLI 16.0.0, HTML, CSS.

Front End Tasks

  1. Make a card view with all the compound names and their images as separate cards.
  2. Use Pagination.
  3. (Use Routing) On click of each card change the route to a page to display the relevant compound details.

Backend Tasks

  1. Make CRUD API to access/edit Compound list and details.
  2. Make db table to access/store the given data (data provided in csv format from easy Import).

Steps to run this project

  1. Clone the repository to your local machine.
  2. Create a MySQL database and make a table named 'compounds' with query - CREATE TABLE compounds (id INT, compoundName TEXT, compoundDescription TEXT, imageSource TEXT, imageAttribution TEXT, dateModified DATE);
  3. Update the dgconfig.js file in /backend_node/configs and also upload the csv file which was provided to the created table.
  4. Navigate to the backend_node directory and run npm install to install ExpressJS and Sequelize dependencies.
  5. Navigate to the frontend directory and run npm install to install Angular dependencies.
  6. Start the Express server using nodemon server.js and Angular app using the script npm start.
  7. The proxy.conf.json file in frontend directory makes the angular app make its api calls to port no. 8080 and therefore integrates the backend with frontend running on port no. 4200.

There are currently 5 API calls in this app-

  1. GET /api/compound: Retrieve all compounds with pagination.
  2. GET /api/compound/:id: Get compound by ID.
  3. POST /api/compound/: Add a new compound.
  4. PUT /api/compound/:id: Update details of a compound with a specific ID.
  5. DELETE /api/compound/:id: Delete a compound with a specific ID.

chemcatalogue's People

Contributors

adii285 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.