Skip to content

🚀 Website Backend API using Node.js and Express Welcome to the Website Backend API repository! This project serves as the backbone for a dynamic website, providing essential functionalities such as user authentication, data management, and API endpoints. Built with Node.js and Express, this backend solution leverages a stack of powerful libraries

License

Notifications You must be signed in to change notification settings

wandaazhar007/kansha-hibachi-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website Backend API using Node.js and Express

Welcome to the Website Backend API repository! This project provides the backend functionality for a dynamic website, developed using Node.js, Express, and a selection of essential libraries. It's designed to handle authentication, data management, and various API endpoints to support your frontend application.

Features

  • Secure user authentication and password hashing using bcrypt.
  • Efficient handling of cookies using cookie-parser.
  • Cross-origin resource sharing (CORS) management for controlled data access.
  • Environment variable configuration with dotenv for better security and flexibility.
  • File upload support with express-fileupload.
  • Session management using express-session for user persistence.
  • JSON Web Token (JWT) authentication for API security.
  • MySQL database connectivity and management using sequelize and mysql2.

Technologies Used

  • Node.js: Runtime environment for server-side JavaScript execution.
  • Express: Fast, unopinionated, and minimalist web framework for Node.js.
  • bcrypt: Hashing passwords for secure storage and authentication.
  • cookie-parser: Parse HTTP request cookies for easy management.
  • CORS: Cross-Origin Resource Sharing for controlled data access.
  • dotenv: Load environment variables from a .env file.
  • express-fileupload: Handle file uploads with ease.
  • express-session: Session management for user persistence.
  • JSON Web Token (JWT): Secure authentication method for transmitting information between parties.
  • mysql2: MySQL database connectivity for Node.js applications.
  • sequelize: Promise-based Node.js ORM for MySQL database management.

Getting Started

  1. Clone this repository to your local machine.
  2. Navigate to the project directory: cd backend-api.
  3. Install the required dependencies: npm install.
  4. Set up your MySQL database configuration in config/config.json.
  5. Configure environment variables in a .env file.
  6. Implement your routes and controllers in the routes and controllers directories.
  7. Run the server: npm start.
  8. The API will be accessible at: http://localhost:3000.

Contributing

Contributions are welcome! Feel free to open a pull request or an issue if you find any bugs or want to suggest improvements.

License

This project is licensed under the [MIT License].


Developed by Wanda Azhar

About

🚀 Website Backend API using Node.js and Express Welcome to the Website Backend API repository! This project serves as the backbone for a dynamic website, providing essential functionalities such as user authentication, data management, and API endpoints. Built with Node.js and Express, this backend solution leverages a stack of powerful libraries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published