- Timestamp:
- 06/11/22 12:46:20 (2 years ago)
- Branches:
- main
- Children:
- 64dc53b
- Parents:
- 6568bde
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
README.md
r6568bde r87614a5 1 This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). 1 # Caessino 2 2 3 ## Getting Started 3 Firstly, create a .env file in the project's root directory and populate it like so: 4 4 5 First, run the development server: 5 HOME_URL="http://localhost:3000" 6 6 7 ```bash8 npm run dev9 # or10 yarn dev11 ```12 7 13 Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. 8 Now, in your console, navigate to the project's root directory and run: 14 9 15 You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file. 10 docker-compose up 16 11 17 [API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.18 12 19 The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. 13 ======== If you are configuring this project for the first time, do the following ========= 20 14 21 ## Learn More 15 We will now set up a dummy database, in order for the project to work. 16 Note: The containers should be running in the background! (previously started with docker-compose up) 22 17 23 To learn more about Next.js, take a look at the following resources:18 Open another console and run: 24 19 25 - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. 26 - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. 20 docker exec -it name_of_db_container /bin/bash 21 psql -U postgres postgres < /usr/local/app/caessino.sql 27 22 28 You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! 23 ========================================================================================== 29 24 30 ## Deploy on Vercel 25 Now you are all set up. 31 26 32 The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. 33 34 Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. 27 Enjoy your stay at Caessino.
Note:
See TracChangeset
for help on using the changeset viewer.