Skip to content

northcoders/nc-sample-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The NC Doughnuts API

This API concerns sales of yummy doughnuts from the Northcoders bakery.

The code should be deployable in any Unix-like OS. The build process outlined below requires Python be installed along with GNU Make. MacOS users can get access to the make command via Homebrew or MacOS Command Line Tools.

To run the API locally:

  1. Fork and clone the repo.
  2. Ensure that your Python interpreter is Python at least 3.11.x - you may use a tool like pyenv.
  3. In the root of the project, create the run environment with:
    make requirements
  4. Set up the required dev tools:
    make dev-setup
  5. Run the tests.
    make run-checks
  6. Start the server by running:
    make start-server
  7. In your browser, navigate to localhost:8000/docs/ to view the API documentation page.
  8. Then you can navigate to the endpoint of your choice, e.g. localhost:8000/api/doughnuts.

API logs are available in logs/app.log.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published