Welcome to GymDiary Backend! This repository contains the backend server implementation for GymDiary, a comprehensive fitness tracking application. GymDiary Backend is built using Node.js and GraphQL, providing a powerful and flexible platform for handling user authentication, workout logging, exercise logging, groups and more.
- Node.js: GymDiary Backend is powered by Node.js, offering a scalable and efficient runtime environment for building server-side applications.
- GraphQL: GymDiary Backend utilizes GraphQL for defining a flexible and type-safe API, enabling clients to query and mutate data with ease.
- Express.js: Express.js is used as the web server framework for GymDiary Backend, providing middleware and routing capabilities to handle incoming requests.
- MongoDB: GymDiary Backend stores data in a MongoDB database, offering a NoSQL solution for storing user profiles, workouts, goals, and progress.
- JWT Authentication: GymDiary Backend implements JSON Web Token (JWT) authentication for secure user authentication and authorization.
- TypeScript: GymDiary Backend is written in TypeScript, providing static type checking and enhanced developer experience.
To get started with GymDiary Backend, follow these steps:
- Clone this repository to your local machine.
- Install dependencies by running
npm install
. - Set up your MongoDB database and configure connection settings in the
.env
file.
- NODE_ENV=development
- PORT=3000
- DATABASE_URL="your mongodb url"
- JWT_SECRET="your jwt secret"
- Run the development server with
npm run dev
.
This project is licensed under the MIT License, which means you are free to use, modify, and distribute the code as you see fit.
If you have any questions or suggestions, feel free to reach out to me at roope.kasperi.laine@gmail.com.