Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adislksn/my_hotel
https://github.com/adislksn/my_hotel
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/adislksn/my_hotel
- Owner: adislksn
- Created: 2023-12-17T17:05:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-18T20:21:30.000Z (about 1 year ago)
- Last Synced: 2024-11-12T00:35:28.647Z (2 months ago)
- Language: JavaScript
- Size: 4.41 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Hotel
Frontend : React\
Backend : Pyramid\
Database : MySQL## Installation Backend
```py
# Create your own database name
# inside backend/development.ini
# sqlalchemy.url = mysql+mysqlconnector://root@localhost/my_hotel
```Install venv
```bash
git clone https://github.com/adislksn/my_hotel.git
cd my_hotel\backend
python -m venv venv
```Every command below can be run using makefile. Try this command in your terminal
```bash
make -v
# if the result not found, install make using
# this command
choco install make
```Install backend
```bash
make install
```Initialize database
```bash
make init record
make upgrade
```Migrate database
```bash
make migrate
```Run backend
```bash
make run develop
# Server will run on http://localhost:6543
```## Installation Frontend
```bash
cd my_hotel\frontend
npm install
npm run dev
# Server will run on http://localhost:5173
```