This is the Final Project of the Explorer Module - RocketSeat Programming School.
Welcome to the backend repository for the FoodExplorer project. This backend was developed using Node.js, Express.js, and SQLite to support the frontend application that enables the exploration of a restaurant menu and the placement of orders.
- Node.js: JavaScript runtime environment.
- Express.js: Web application framework for Node.js.
- SQLite: Embedded relational database.
- Clone the Repository:
git clone https://github.com/eduaardofranco/foodExplorerAPI.git cd foodExplorerAPI
- Install Dependencies:
npm install
- Environment variables:
Rename the .env.example file to .env and adjust the variables as needed.
- Run the Server:
npm run dev
This backend uses JSON Web Tokens (JWT) for session management. JWT is a secure way to represent user sessions and is employed to enhance the security of user authentication.
-
User Authentication: After a successful login, a JWT is generated on the server.
-
Token Inclusion: The server sends the JWT to the client, which includes it in the headers of subsequent requests.
-
Token Verification: The server verifies the JWT on protected routes, ensuring the user's identity and permissions.
You can access the frontend side through: https://thefoodexplorer.netlify.app