This is the server repository for my Recipe Web App! This server is responsible for handling various backend functionalities to provide users with a seamless recipe-sharing experience.
-
API Endpoints: the server has a set of API endpoints that allow users to retrieve, create, update, and delete recipes as well as a signup, login feature for users.
-
User Authentication: the server ensures that only authenticated users can perform certain actions like adding new recipes, updating and deleting personal recipes or leaving comments.
-
Data Management: the server connects to the PostgreSQL database to store and retrieve recipe data, user profiles, and comments.
-
Node.js: built using Node.js.
-
Express.js: used Express.js framework for the API endpoints.
-
PostgreSQL: the choice of database is PostgreSQL, providing a relational data storage for recipe data and related information.
To set up the server locally, follow these steps:
- Clone this repo to your local machine.
- Install the required dependencies using
npm install
. - Create a
.env
file based on the provided.example.env
, and configure the necessary environment variables such as database connection details and API keys. - Finnaly, run the server using
npm start
.