Skip to content

Backend Developer Roadmap

Design an API, store data reliably and make errors understandable to callers.

You will have an easier time if you can already write functions, work with arrays and run a script from the terminal. The examples use Node.js and PostgreSQL so the project has one clear stack from start to finish.

Roadmap flowchart

Choose a milestone to jump to the lesson, exercises and resources.

  • Main path
  • Optional branch

One-shot courses and practice labs

Create a local booking service with fake users and slots. Keep a request log and a short API contract from the first day. Use current project setup docs alongside older course examples, especially when package versions differ.

Use the focus list to choose what to watch. Pause to do the lab while the material is fresh. Each lab builds toward the project at the end of this roadmap.

  1. Node.js and Express.js

    freeCodeCamp.org · About 8 hours

    What to focus on

    • Node and asynchronous work
    • Methods, routes and middleware
    • Consistent JSON responses and error handling

    Related lessons

    Practice lab

    1. Write an API contract for listing slots, booking one and cancelling one. For each operation record the expected input and what a caller sees when it fails.
    2. Implement the first two routes with in-memory data. Send a clean request, one with a missing field and one for a nonexistent slot. Compare the output against your contract.
    3. Add one error handler and a small request log. Keep access tokens, request bodies and personal details out of the log. Use the course’s Express examples and keep the roadmap’s PostgreSQL design for storage.

    What to have at the endTwo working routes and a request transcript that shows where validation and request handling happen.

  2. PostgreSQL for Beginners

    freeCodeCamp.org · About 4 hours

    What to focus on

    • Tables, primary keys and relationships
    • Joins and constraints
    • Using the database to reject inconsistent writes

    Related lessons

    Practice lab

    1. Draw the user, slot and booking tables. Add constraints for the business rules and seed enough rows to exercise both available and claimed slots.
    2. From two local clients, try booking the same slot at nearly the same time. Confirm that the database keeps one booking and translate the conflict into a response the caller understands.
    3. Make cancellation verify ownership using sample users. Check the response to your own booking, another user’s booking and a booking that does not exist.

    What to have at the endReproducible schema and seed files with a script or documented commands that demonstrate the booking rule and permission checks.

  3. Postman API Test Automation for Beginners

    freeCodeCamp.org · About 4 hours

    What to focus on

    • Status, headers and response-body assertions
    • Grouping requests into a collection
    • Running checks with the command line

    Related lessons

    Practice lab

    1. Write a repeatable sequence that books an available slot, detects a collision and cancels the original booking. Assert response content as well as status codes.
    2. Run the sequence with a fresh test database. Deliberately change a response field in your service and confirm the right check fails with a useful message.
    3. Add a quickstart that names prerequisites, environment variables and the test command. Ask someone to follow it using a new checkout and empty database.

    What to have at the endA repeatable test run and a README that lets another person exercise the service without needing your local state.

Lessons and resources

  1. Follow an HTTP request into a server

    Start with a request line, method, path, headers and body, then trace what the server sends back. Keep GET for reading and use POST to create a booking. Read the response in a terminal client so you can see the status and headers alongside the JSON.

    Put it into practice

    Return a short list of hard-coded time slots from GET and accept booking data in a POST. Save one example request and annotate what each line is doing. A saved command is easier for someone else to repeat than an API client screenshot.

    Ready to move on?

    You can explain the difference between a successful response containing an empty array and a failed request to an unknown route.

    Course and practice lab

    Resources

    Back to flowchart
  2. Agree on resource names and response shapes

    List the records your API serves before settling on paths. Slots and bookings have different lifetimes. Keep one consistent JSON shape for errors, give errors stable codes that callers can act on, and keep implementation details out of public responses.

    Put it into practice

    Write a small endpoint table with the request fields, success response and likely failures for listing slots, creating a booking and cancelling it. Have a friend or a future-you try a sample request using only the table.

    Ready to move on?

    Every endpoint has a pasteable example and names the expected status for the two most common failure cases.

    Optional branch

    Add a formal API contract

    A small Markdown table is sufficient for your first three endpoints. Try OpenAPI once you have another consumer or want tools to generate request clients from the contract.

    Course and practice lab

    Resources

    Back to flowchart
  3. Put booking rules in a relational database

    Use foreign keys for records that must point to one another and decide which values must be unique. For fixed slots, one booking per slot is an invariant the database can enforce. An application-side availability check is still useful for a friendly message, but two requests can both see a free slot before either writes.

    Put it into practice

    Create rooms, slots and bookings in a migration. Seed two rooms, set a uniqueness constraint on the booking’s slot and use a join to list available slots. Repeat with identical requests in parallel against your local service and check the stored rows.

    Ready to move on?

    You have a reproducible check for competing writes, one booking row to show afterward and a clear explanation of where the constraint lives.

    Course and practice lab

    Resources

    Back to flowchart
  4. Validate inputs and check ownership

    Validate the data at the server boundary and decide which fields a caller may set. Identity comes from authenticated context, while authorization answers whether that user is allowed to act on this particular booking. Treat cancellation as its own case so you can specify who may do it and what a repeated cancellation returns.

    Put it into practice

    In your local API, create bookings for two synthetic accounts. Confirm each account can cancel its own reservation and receives the documented denial for the other account’s reservation. Check that an invalid date returns a client error with a readable explanation.

    Ready to move on?

    You can point to one validation rule and one authorization rule, and both are covered by repeatable tests.

    Common snag

    An account ID or role supplied in the request body is input from the caller. Use the authenticated identity when enforcing ownership.

    Course and practice lab

    Resources

    Back to flowchart
  5. Test the service at its HTTP boundary

    Use a clean local database and predictable fixtures. A small test suite should cover normal behavior, an invalid request, a missing record, a permission denial and the double-booking case. Assert the public status and body so you can reorganize handlers later without rewriting valid tests.

    Put it into practice

    Write API tests that replace manual clicking. Run the competing booking test a few times and verify the fixture creates a fresh slot on each run. Document the smallest set of commands a reviewer needs to rerun the suite.

    Ready to move on?

    The suite passes twice from a fresh database and fails if you change the expectation for a real response.

    Course and practice lab

    Resources

    Back to flowchart
  6. Make the service easier to run and diagnose

    Keep connection settings outside source control and check required values before startup. Add a health response and use a request identifier in logs so you can connect one client report to one request. Use sanitized, structured fields rather than logging entire request bodies.

    Put it into practice

    Write an example environment file with placeholder values and document the order for migrating, seeding and starting the service. Restart with a missing setting and confirm the message names the setting without printing any secrets.

    Ready to move on?

    A fresh clone can be run by following the README, and one example log line shows request ID, status and elapsed time.

    Course and practice lab

    Resources

    Back to flowchart

Portfolio project

A community booking API

Build a small API for a community space with bookable time slots. A client should be able to list available slots, make a reservation and cancel its own reservation. Include sample data and documented requests so a reviewer can try the API without a front end.

You’re ready when

  • Two overlapping requests for the same slot yield exactly one confirmed booking and one conflict.
  • A caller can distinguish malformed input, an unknown slot and an already-booked slot from the response.
  • The cancellation policy is enforced by the server and tested with accounts you control.
  • A fresh database can be migrated and seeded using the README, and logs avoid personal data and credentials.

Make your first ask

Use the double-booking test as your portfolio example. A reviewer can read the request, run the test and see how the database protects the booking even when two requests arrive together.

Job referral templates