repositorypackage
0.0.0-20231006153043-6d9a636a46a1
Repository: https://github.com/im-abhi/chirpy.git
Documentation: pkg.go.dev
# README
CHIRPY
A REST api made in golang.
Setting Up in your local Environment
- Make sure you have go installed. If not go
- After installation check your go version on command line using this command
go version
This command should return something like
go version go1.21.1 windows/amd64
- Copy the .evn.example file, rename the file to .env and add the required environment varibles. After you are done the file content should look like this
PORT=8000
JWT_SECRET="chirpy_secret"
POLKA_KEY="f271c81ff7084ee5b99a5091b42d126e"
- Once steps 1-3 are done you are good to go. Run this command to spin up the chirpy server.
go build
.\chirpy.exe
- If the build fails the executable won't be formed and you should be able to see the error in the terminal.
- If the build succeeds you should see something like this.
2023/10/06 20:47:40 Serving files from . on port: 8000
Want to Contribute to the project
You can do so by creating a fork of this repo and creating a pull request for the changes.
Looking for someone who can help in the API documentation (someone new to github and wants to contribute)