Devjobs board app build with 1) ReactTS/TailwindCSS and Vite for frontend and 2) Python/Flask and Docker for backend. ๐ง WIP : Only in local environment ๐ง
๐ ๏ธ AVAILABLE LOCALLY ONLY FOR THE MOMENT ๐ ๏ธ. The environment variables (test) for starting the project are given in the section with docker compose. If you have any problems, don't hesitate to open an issue or contact me directly ๐
If you want to run the project locally, use docker and a code editor, having first cloned the project.
docker compose
๐With docker compose, locally, the database is persisted but not made available on github. ๐
To access the data in the database, you'll find a file called data.sql
in the backend folder.
To use it, start docker compose and connect to the Adminer service at http://localhost:8080/.
To connect to the database service, simply write these environment variables to a file named .env
at the root of backend folder. These variables is dummy data. During the development phase, these variables will no longer be available.
MARIADB_ROOT_PASSWORD=example
MARIADB_USER=admin@devjobs
MARIADB_PASSWORD=secretpw
MARIADB_DATABASE=devjobs
Then you can run this command:
docker compose up
๏ธ๐จโ๐ง๏ธ WARNING, it is possible that the backend service crashes on first execution with this message ๐จโ๐ง
๏ธbackend-1 | sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'database' ([Errno 111] Connection refused)")
๐จโ๐งIf so, just restart the service from docker desktop. ๐จโ๐ง
Once all services are up and running, return to adminer and log in with MARIADB data. On the left, you'll see the โImportโ action. All you have to do is select the sql file and your database is ready! ๐ฅณ
cd frontend
npm i
npm run dev
Your users should be able to: