A basic RESTful API built with Symfony 6 framework, managing login/register with JWT
POST /api/login
: Login with your credentials and get your token.POST /api/register
: Register a new user.GET /api/dashboard
: With your JWT, you can get access to the endpoint.GET /api/dashborad/me
: With your JWT, you can see your user data.
- Clone the repository:
git clone [repository_url]
. - Navigate to the project directory:
cd project_directory
. - Install the dependencies:
composer install
. - Set up your environment variables in
.env
or.env.local
. - Run the database migrations:
bin/console doctrine:migrations:migrate
. - Start the Symfony development server:
symfony server:start
.