Skip to content

everzakov/Olymp.Club

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

1)install go version 1.17
2)install postgresql (brew install@14)
3)import database.sql:
psql
CREATE DATABASE olympclub; 
psql -f database.sql -p port -U username olympclub
4)cd olympclubserver
5)go mod tidy
6)make .env:
DATABASE_URL="postgres://YourUserName:YourPassword@YourHostname:5432/olympclub"
MAIL_FROM="user@gmail.com"
MAIL_USER="user"
MAIL_PASSWORD="user_password"
MAIL_ADDR="smtp.gmail.com:587"
MAIL_HOST="smtp.gmail.com"
FRONT_URL="localhost:3005"
7) export $(grep -v '^#' .env | xargs)
8) go run cmd/main.go
9) cd olympclubfront
npm install
10)make .env
REACT_APP_API_URL="http://127.0.0.1:8000/api/v1"
REACT_APP_STATIC_FILES="http://127.0.0.1:8000/static"
PORT=3005
(you can change address of your server in olympclubserver/cmd/main.go)
11) npm start
12) after creating and approving of your email (add your user_id to admin model in olymclub database)

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published