Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/calcagnoloic/devjobs-app

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 🚧
https://github.com/calcagnoloic/devjobs-app

docker docker-compose flask python reacttsx storybook tailwindcss vite

Last synced: 26 days ago
JSON representation

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 🚧

Awesome Lists containing this project

README

        

# DevJobs app

πŸ› οΈ 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.

## Launching backend `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:

```cmd
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! πŸ₯³

## Launching frontend with vite

```cmd
cd frontend
npm i
npm run dev
```

## User stories

Your users should be able to:

- [ ] Be able to filter jobs on the index page by title, location, and whether a job is for a full-time position
- [x] Be able to click a job from the index page so that they can read more information and apply for the job
- [x] View the optimal layout for each page depending on their device's screen size
- [x] See hover states for all interactive elements throughout the site
- [x] Have the correct color scheme chosen for them based on their computer preferences
- [x] Build this project as a full-stack application

## Built with

- Semantic HTML5 markup
- TailwindCSS
- React-TS
- Storybook 7.x
- Chromatic
- Python 3.12 - Flask
- Docker 4.30

## Authors

- Frontend - [@amel-selmane](https://github.com/amel-selmane)
- Frontend/Backend/Docker - [@CalcagnoLoic](https://github.com/CalcagnoLoic)