Our app is more than just a collection of drinks - its a designed to be your own digital cocktail maker! This app will allow you to easily find and add your favorite cocktail recipes and create your own unique ones.
The project builds RESTful APIs using Node.js, Express and Mongoose
This project depends on Nodejs and Node Package Manager (NPM). Before continuing, you must download and install Node (the download includes NPM) from https://nodejs.com/en/download.
Clone the repo:
git clone https://github.com/R3enox/backend-drink-master.git
cd backend-drink-master
Install the dependencies:
npm install
Set the environment variables:
cp .env.example .env
# open .env and modify the environment variables
Running in development:
npm start
# or
npm run dev
The environment variables can be found and modified in the .env
file.
# App name
APP_NAME = # default App Name
# Host
DB_HOST = mongodb://127.0.0.1:27017/database_name
FRONTEND =
BACK =
# Port
PORT = 3000
# JWT
ACCESS_SECRET_KEY =
REFRESH_SECRET_KEY =
# Cloudinary
CLOUDINARY_NAME =
CLOUDINARY_API_KEY =
CLOUDINARY_API_SECRET =
# Email delivery
MAILTRAP_USER =
MAILTRAP_PASSWORD =
|--controllers\ # Controllers
|--helpers\ # Help functions
|--middlewares\ # Custom express middlewares
|--models\ # Mongoose models
|--routes\ # Routes
|--app.js # Express
|--server.js # Database connection
Security: the refresh + access token scheme is used. A reliable mechanism for controlling users' "sensitive information".
The authentication system used in this project is Auth2 ./controllers/authController.js
, which contains the logic to redirect the user to the Auth2 login page, manage the JWT token after a successful callback, and handle the installation and retrieval of the token from the storage. This token is then used by our (./routes/api/drinks.js) and passed as an authorization header for requests to our backend.
To start using our app, go to the link and sign up for the system. Once you have successfully logged in, enjoy the app's features ๐
- Mykyta Yeremenko - Team Lead Github
- Natalia Mahera - Scrum Master Github
- Yakiv Hrubskyi - Github
- Mykola Pavlovych - Github
- Kateryna Mala - Github
- Vadym Bobyrenko - Github
- Serhii Lutsenko - Github
- Alex Prokopiev - Github
- Karina Ahadzhanian - Github
- Eduard Sorokolietov - Github
- Angelina Smaluch - Github