JustFriends-BE is a backend service for the JustFriends application.
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of Node.js and npm.
- You have a Windows/Linux/Mac machine.
To install JustFriends-BE, follow these steps:
- Clone the repository:
git clone https://github.com/yourusername/JustFriends-BE.git
- Navigate into the project directory:
cd JustFriends-BE
- Install the dependencies:
npm install
JustFriends-BE requires the following environment variables:
DATABASE_URL
: The connection string for your PostgreSQL database.PORT
: The port on which the server should run.SECRET_KEY
: The secret key for signing JWT tokens.
You can set these variables in a .env
file in the root of your project. For example:
DATABASE_URL=postgres://myuser:mypassword@localhost:5432/mydb PORT=3000 SECRET_KEY=mysecretkey
To run JustFriends-BE, follow these steps:
- Start the server:
npm start
- The server should now be running at
http://localhost:3000
.
If you want to contact me you can reach me at <[email protected]>
.
This project uses the following license: <MIT>
.