This project was done for learning and creative purposes. I just wanted to create a full-stack app with docker.
-
Backend
- Creating a new row with data in the database
- Deleting a row when it expired
- Showing data from the database
-
Frontend
- Simple form with picocss
- Calling the API to create the row in DB
$ git clone https://github.com/Zielin0/embyes.git
$ cd embyes
-
Database .env file
$ cp .env.example .env
Change the
POSTGRES_PASSWORD
to your password. -
Website .env file
$ cp website/.env.example website/.env
If you wish to use a different URL than the default just change it in the
website/.env
file.
You will need the docker for this.
If you are running for the first time:
$ docker compose up -d --build
If you want to close the docker containers and keep data from the database run the following:
$ ./dump_db.bat && docker compose down
If you want to run again and restore the database just do:
$ docker compose up -d && ./restore_db.bat
You will need ngork if you want to test it.
Run ngrok with http method on port 6969
.
Open another terminal window and run:
$ ngrok http 6969
Copy the URL from ngrok and paste it to website/.env
.
Now visit 127.0.0.1:8080
and create a test embed.
This project is under the MIT License.
If docker compose
is not working for you then try docker-compose