parent
90db0a9be8
commit
5bdacb431b
@ -1,28 +1,26 @@ |
||||
# RoboTop сайт робототехнического фестиваля |
||||
|
||||
A Next.js starter for your next blog or personal site. Built with: |
||||
Сайт для мероприятия с возможностью регистрировать пользователей в безе данный MySql. Построен на: |
||||
|
||||
- [Typescript](https://www.typescriptlang.org/) |
||||
- Write posts with [MDX](https://mdxjs.com/) |
||||
- Style with [Tailwind CSS](https://tailwindcss.com/) |
||||
- Linting with [ESLint](https://eslint.org/) |
||||
- Formatting with [Prettier](https://prettier.io/) |
||||
- Linting, typechecking and formatting on by default using [`husky`](https://github.com/typicode/husky) for commit hooks |
||||
- Testing with [Jest](https://jestjs.io/) and [`react-testing-library`](https://testing-library.com/docs/react-testing-library/intro) |
||||
- Сайт написан на [Typescript](https://www.typescriptlang.org/) |
||||
- Написание постов [MDX](https://mdxjs.com/) |
||||
- Стили и дизайн [Tailwind CSS](https://tailwindcss.com/) |
||||
- Статически анализ кода [ESLint](https://eslint.org/) |
||||
- Linting, проверка типов и форматирование включены по умолчанию. [`husky`](https://github.com/typicode/husky) for commit hooks |
||||
- Тестирование с [Jest](https://jestjs.io/) and [`react-testing-library`](https://testing-library.com/docs/react-testing-library/intro) |
||||
- [Redux Toolkit](https://redux-toolkit.js.org/) |
||||
- [Mysql2](https://www.npmjs.com/package/mysql2) |
||||
|
||||
## Getting Started |
||||
## Для запуска сайта: |
||||
|
||||
```bash |
||||
git clone https://github.com/ChangoMan/nextjs-typescript-mdx-blog.git |
||||
cd nextjs-typescript-mdx-blog |
||||
git clone http://62.113.100.171:3000/Lab/robotop.krasnikov.pro.git |
||||
cd robotop.krasnikov.pro |
||||
|
||||
yarn install |
||||
# or |
||||
npm install |
||||
|
||||
yarn dev |
||||
# or |
||||
npm run dev |
||||
``` |
||||
|
||||
Your new site will be up at http://localhost:3000/ |
||||
Ваш новый сайт будет доступен в http://localhost:3000/ |
||||
|
||||
## Для настройки подключения к базе данных отредактируйте файл env.local и переименуйте его в .env.local |
||||
|
@ -1,12 +1,6 @@ |
||||
// .env.local |
||||
|
||||
USER_="crapshr6_robotop" |
||||
HOST="crapshr6.beget.tech" |
||||
DATABASE="crapshr6_robotop" |
||||
PASSWORD="sJ9&alNk" |
||||
|
||||
MAILSERVER="smtp.beget.com" |
||||
MAILNAME="service@vsst.su" |
||||
MAILPASS = "&ekS0NPD" |
||||
|
||||
SITE="http://localhost:3000/api/" |
||||
USER_="Имя пользователя базы данных" |
||||
HOST="IP адрес базы данных" |
||||
DATABASE="Имя базы данных" |
||||
PASSWORD="Пароль доступа к базе данных" |
@ -0,0 +1,63 @@ |
||||
-- phpMyAdmin SQL Dump |
||||
-- version 4.9.7 |
||||
-- https://www.phpmyadmin.net/ |
||||
|
||||
-- -------------------------------------------------------- |
||||
|
||||
-- |
||||
-- Table structure for table `members` |
||||
-- |
||||
-- Creation: Jun 14, 2022 at 04:25 AM |
||||
-- Last update: Jul 15, 2022 at 10:08 PM |
||||
-- |
||||
|
||||
DROP TABLE IF EXISTS `members`; |
||||
CREATE TABLE `members` ( |
||||
`id` int(5) NOT NULL, |
||||
`name_team_coach` varchar(100) NOT NULL, |
||||
`coach_telefon_number` varchar(100) NOT NULL, |
||||
`trainer_mail` varchar(100) NOT NULL, |
||||
`city_team` varchar(100) NOT NULL, |
||||
`training_institution_team` varchar(100) NOT NULL, |
||||
`team_name` varchar(100) NOT NULL, |
||||
`name_first_participant` varchar(100) NOT NULL, |
||||
`first_partial_class` int(2) NOT NULL, |
||||
`name_second_participant` varchar(100) NOT NULL, |
||||
`second_class` int(2) NOT NULL, |
||||
`name_third_party` varchar(100) NOT NULL, |
||||
`third_part_class` int(2) NOT NULL, |
||||
`reg_time_add` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, |
||||
`status` int(1) NOT NULL DEFAULT '1' |
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
||||
|
||||
-- |
||||
-- Dumping data for table `members` |
||||
-- |
||||
|
||||
INSERT INTO `members` (`id`, `name_team_coach`, `coach_telefon_number`, `trainer_mail`, `city_team`, `training_institution_team`, `team_name`, `name_first_participant`, `first_partial_class`, `name_second_participant`, `second_class`, `name_third_party`, `third_part_class`, `reg_time_add`, `status`) VALUES |
||||
(36, 'Красников Павел Геннадьевич', '79189458044', 'crapsh@gmail.com', 'Краснодар', 'МАОУ СОШ 103', 'Фиксики', 'Иван Филлипов', 8, 'Владислав Дельнов', 8, 'нет', 0, '2022-07-02 18:34:33', 1); |
||||
|
||||
-- |
||||
-- Indexes for dumped tables |
||||
-- |
||||
|
||||
-- |
||||
-- Indexes for table `members` |
||||
-- |
||||
ALTER TABLE `members` |
||||
ADD PRIMARY KEY (`id`); |
||||
|
||||
-- |
||||
-- AUTO_INCREMENT for dumped tables |
||||
-- |
||||
|
||||
-- |
||||
-- AUTO_INCREMENT for table `members` |
||||
-- |
||||
ALTER TABLE `members` |
||||
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=98; |
||||
COMMIT; |
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
Loading…
Reference in new issue