cafrias / marco-polo-api

The API for Marco Polo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Marco Polo API

This is the API for Marco Polo.

Development

To spin up the project locally, follow these steps:

  1. First clone the repo
  2. Then cd YOUR_PROJECT_REPO && cp .env.example .env
  3. Next npm && npm dev (or docker-compose up, see Docker)
  4. Now open http://localhost:3000/admin to access the admin panel
  5. Create your first admin user using the form on the page

That's it! Changes made in ./src will be reflected in your app.

Docker

Alternatively, you can use Docker to spin up this project locally. To do so, follow these steps:

  1. Follow steps 1 and 2 from above, the docker-compose file will automatically use the .env file in your project root
  2. Next run docker-compose up
  3. Follow steps 4 and 5 from above to login and create your first admin user

That's it! The Docker instance will help you get up and running quickly while also standardizing the development environment across your teams.

Production

To run Payload in production, you need to build and serve the Admin panel. To do so, follow these steps:

  1. First invoke the payload build script by running npm build or npm run build in your project root. This creates a ./build directory with a production-ready admin bundle.
  2. Then run npm serve or npm run serve to run Node in production and serve Payload from the ./build directory.

About

The API for Marco Polo

License:MIT License


Languages

Language:TypeScript 96.5%Language:Dockerfile 3.5%