Sign inSign up

kpcwebdev/learning_lynx-frontend

By kpcwebdev

•Updated almost 6 years ago

A Next.js application that allows me to organize resources and links I wish to learn from.

Image
0

10K+

kpcwebdev/learning_lynx-frontend repository overview

⁠Learning Lynx Frontend

A place to organize links and resources I wish to learn from.

Docker Cloud Build Status

⁠Deploy your own Learning Lynx Frontend instance.

Deploy to Vercel⁠:

Deploy with Vercel

Learning Lynx is a Next.js⁠ application built with TypeScript⁠ and a GraphQL API⁠ backend.

⁠Local Development Environment

⁠Prerequisites

⁠Getting Started

⁠Install Dependencies & Start the Server

Use Yarn to install project dependencies.

# Install dependencies with Yarn
yarn install
# Start the development Server:
yarn dev

Once you run this command you can visit the Learning Lynx frontend in your browser at http://localhost:3000/⁠. This starts the server in dev mode and watches the project for any changes.

⁠Docker Development via Docker Compose⁠

⁠Container Stack

Start the stack with Docker Compose:

docker-compose up -d
  • This will start the stack in daemon mode, meaning that it will just start all containers in the background. You can view the stack, e.g.:
# View all container logs
docker-compose logs
# View specific container logs
docker-compose logs backend
  • You can see the running services to confirm they are up and running, by using the following Docker command.
docker ps -a

⁠Docker Compose Services

Docker ContainerHostnameExposed LocationDescription
kpcwebdev/learning_lynx-backend:latestbackendhttp://localhost:1993/graphql⁠Backend GraphQL Server
kpcwebdev/learning_lynx-frontend:latestfrontendhttp://localhost:3000/⁠Frontend Next.js Application
PostgreSQLdbhttp://localhost:5432/⁠PostgreSQL Database Server
Redisredishttp://localhost:6379/⁠Redis Server
pgAdminpgadminhttp://localhost:5050/⁠PostgreSQL Administration Tools
Admineradminerhttp://localhost:8080/⁠Database Administration Tools
MailHogadminerSMTP Port: 1025⁠ MailHog UI Port: 8025⁠Web and API based SMTP testing
  • The frontend container volume has been mapped to the current working directory, this way you can make changes to the codebase while the containers are running and see the changes immediately.

⁠Makefile⁠

The Makefile provided will help in creating Docker images and deploying a docker stack to a docker swarm locally or to a swarm composed of DigitalOcean Droplets⁠. The following command will list available Make actions set in the Makefile.

make help
Make CommandDescription
dev-imageMake a development Node.js image with dev/test dependencies for Next.js frontend
dev-shellMake a BASH shell in the dev docker container and remove it after shutdown
run-dev_containerMake docker run the dev image and remove it after shutdown
prod-imageMake a production Node.js image with optimized Next.js build
prod-shellMake a BASH hell in the production docker container and remove it after shutdown
run-prod_containerMake docker run the prod image and remove it after shutdown
docker-stack_localMake a local deployment using docker-compose: docker stack -> docker swarm
unstackMake a local docker-compose deployment shutdown and remove docker stack and docker swarm

Tag summary

Content type

Image

Digest

Size

591 MB

Last updated

almost 6 years ago

docker pull kpcwebdev/learning_lynx-frontend