-
front end code is uploaded in repoistory ----> https://github.com/achyuta22/chainTech-frontend.git
-
backend code is divided into 5 major files
-
- app.js --->where server is initiated at port 5000
- routes folder => routes.js (which contain the routes to specified request)
- controllers.js ----> wherre logic for each route is written
- config folder => database.js ----->connection to database is here
- models => List.js ------>has the schema of the databse
-
cors axios is used to connect between frontend and backend.
-
install express by npm i express ==> framework to write backend/node.js
-
install cors by npm i cors ==> used to connect frontend with backend
-
to start server use nodemon ==> npm i nodemon
-
nodemon app.js =>command used to start server and automatically update the changes.
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|