Repository for AthletX Web Server.
The Server is made with Node Js, Express Js and MongoDB as database.
Check out the REST-API of the Server on the dedicated website.
To run the server in localhost:
- Clone the server repository:
git clone https://github.com/AthletX-org/athletx-server.git
- Provide a
.env
file in the root of the project with the following variables:- mongodb_connection_string: the connection string of your mongodb instance
- jwtKey: a unique key used to generate Json Web Tokens to authenticate users
- jwtDuration: the duration of the generated tokens (ex: 30d)
- Run the following command:
node src/app.js
- The server will be accessible at http://localhost:3000