This project is the backend component of the Ryft platform, an educational social media project. It provides server-side functionality such as user authentication, API endpoints, and data persistence, enabling seamless integration with the Ryft Frontend.
By Patryk Piotrowski & Piotr Ostrowski
To ensure the proper functioning of the platform, the Ryft Frontend must also be installed and configured.
1. Clone the repository:
git clone https://github.com/Xdellta/Ryft-Backend.git
cd ryft-backend
2. Install dependencies:
npm install
3 Configure the environment Create a .env file in the project root and configure the required environment variables. Below is an example:
DB_USER=
DB_HOST=
DB_DATABASE=
DB_PASSWORD=
DB_PORT=
DATABASE_URL=""
4. Run database migrations and seed data
npx prisma migrate dev
npm run seed
5. Start the server
node index.js