Travello is an app that will help a user to plan trips and enable them to see all the information in well organized form.
- Database contains one table which include basic details about a travel, to keep it as straightforward as possible. Later on the schema may be changed to group related fields in separate tables and also contain more column with more details about trip from user.
This schema shows what kind of user input I was planning to get at the beginning.
Schema below is the actual one I was working on, to simplyify even more.
- MySQL - database
- Express - to create server and API routes
- Node.js - to run the server
- React - Front-end
- Bootstrap - styling
- Run
yarn install
in project directory. This will install server's project dependencies such as Express. cd client
andyarn install
. This will install client dependencies (React).
- Create MySQL database.
- In your root project folder create .env file to keep information about mySQL autentication, DB_HOST, DB_USER, DB_NAME, DB_PASS. In file database.js update information according to info in your .env file.
- To create table that will represent the same table I used you need to run
npm run migrate
oryarn migrate
in your terminal. You can see definition of this table in database.js file.
- Display only travel destination and date (and some grafic) after user click the box all details will be revield
- Sort trips by date (upcoming first)
- Log in form
- Map for individual trip to show location of hotel, car rental etc.
- User can create wish list/ bucket list/ travel inspirations
This is a student project that was created at CodeOp, a full stack development bootcamp in Barcelona.