An app to search musics suggestion based in a given location.
This project is splitted in two repositories:
Birds migrate acording to the tempeture also they can change their pattern of singing in different stages of live, such as during the reproductive period that also has to do with the tempeture (when is hotter).
Credits for the name to @anakrdo
The Web UI application of the Birdy project, created with Next.js.
This application can be develop in any IDE and any environment with node, but with VSCode + VSCode Dev Container all the dev environment already is configured and ready to use inside a Docker container.
- VSCode - Recommended IDE
- VSCode Dev Container - Recommended to develop inside a container
- Docker - Recommended to run the node inside a container
- Node 10.13+ - Only install it if you will not be use Docker
Create a .env file in the root project folder, with the below environments:
# GIT CONFIG ##########################################################################################################
GIT_USER_EMAIL="your@email"
GIT_USER_NAME="Your name"
#
# NEXT.JS CONFIG ######################################################################################################
NEXT_PUBLIC_URL=http://localhost:3000
NEXT_PUBLIC_BIRDY_API_BASE_URL=http://localhost:8080/api/v1
#Notes:
- The above environment variable values are only examples. Replace it by correct value.
- The
GIT_*environment variables are used to config the git inside a docker container (Only necessary it if you will use the git inside a VSCode Dev Container).
npm run dev- start the Next.js in development mode, then open http://localhost:3000 from your browser;npm run build- build the application for production usage;npm run start- start a Next.js production server.
Note: All this scripts are configured as VSCode tasks and bash alias to facilitate development.
- Nginx - Only install it if you will not be use Docker
This application can be serve in any static HTML server. Below is detailed how to serve it in an Nginx server.
Execute the below command to build the Docker image:
docker build \
--build-arg PUBLIC_URL=http://localhost:80 \
--build-arg BIRDY_API_BASE_URL=http://localhost:8080/api/v1 \
-t seudev/birdy-web-ui .Note: Replace the above URLs by the production URLs.
Execute the below command to run the application:
docker run --rm -it -p 80:80 seudev/birdy-web-uiAfter run, open http://localhost from your browser.
Execute the below command to build the application:
# Install the dependencies if it yet are not installed.
#npm install
npm run buildNote: Replace the URLs in the .env file by the production URLs.
It will be generate static files in the out folder.
Execute the below steps to run the application:
- Remove all files contained in the
/usr/share/nginx/htmlfolder; - Copy all internal files and folders from the
outfolder to the/usr/share/nginx/htmlfolder; - Copy the
nginx.conffile (localized in the root project) to the thenginx/conf.dinstallation folder; - Reload the Nginx config, using the
nginx -s reloadcommand.
After run, open http://localhost from your browser.
seudev/birdy-web-ui is provided and distributed under the Apache Software License 2.0.
Refer to LICENSE for more information.
